mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
6167d76d9a
commit
97a4a7710e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ module ActiveRecord
|
|||
ActiveRecord::Tasks::DatabaseTasks.migrations_paths = Rails.application.paths['db/migrate'].to_a
|
||||
ActiveRecord::Tasks::DatabaseTasks.fixtures_path = File.join Rails.root, 'test', 'fixtures'
|
||||
|
||||
if defined?(ENGINE_PATH) && engine = Rails::Engine.find(ENGINE_PATH)
|
||||
if engine = Rails::Engine.find(find_engine_path(APP_RAKEFILE))
|
||||
if engine.paths['db/migrate'].existent
|
||||
ActiveRecord::Tasks::DatabaseTasks.migrations_paths += engine.paths['db/migrate'].to_a
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue