mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 09:43:48 +08:00
14 lines
387 B
Ruby
14 lines
387 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require "rails/generators/active_record/migration/migration_generator"
|
||
|
|
||
|
class Rails::PostMigrationGenerator < ActiveRecord::Generators::MigrationGenerator
|
||
|
source_root "#{Gem.loaded_specs["activerecord"].full_gem_path}/lib/rails/generators/active_record/migration/templates"
|
||
|
|
||
|
private
|
||
|
|
||
|
def db_migrate_path
|
||
|
Discourse::DB_POST_MIGRATE_PATH
|
||
|
end
|
||
|
end
|