mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Do not run migrations from mounted engine separately.
There is no good way now to run migrations for mounted engine in test application, but that way of running migrations makes it really hard to run engine in development mode and test it (you need to copy migrations in dev mode and in that case in tests they will be run twice). Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
59ba800698
commit
1395545404
1 changed files with 0 additions and 2 deletions
|
@ -9,8 +9,6 @@ Rails.backtrace_cleaner.remove_silencers!
|
|||
<% if full? && !options[:skip_active_record] -%>
|
||||
# Run any available migration from application
|
||||
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
|
||||
# and from engine
|
||||
ActiveRecord::Migrator.migrate File.expand_path("../../db/migrate/", __FILE__)
|
||||
<% end -%>
|
||||
|
||||
# Load support files
|
||||
|
|
Loading…
Reference in a new issue