diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-04-27 10:45:22 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-04-27 11:45:21 +0200 |
commit | 557c46a41ec73c485a783b56fbbe893a00f49fe8 (patch) | |
tree | f92d2890d718e3abd5ffdc49d391f901e4d10c7b /activerecord/lib/active_record/railties | |
parent | ba35b4702e012f866c4bf904d5b7da21375b3133 (diff) | |
download | rails-557c46a41ec73c485a783b56fbbe893a00f49fe8.tar.gz rails-557c46a41ec73c485a783b56fbbe893a00f49fe8.tar.bz2 rails-557c46a41ec73c485a783b56fbbe893a00f49fe8.zip |
Revert "Merge pull request #17920 from calebthompson/dont-rely-on-environment-task-for-schema-load"
This reverts commit 08ff4ccbbb3fb143a02e6752efb974a4bcfcd3bb, reversing
changes made to 6c9ed6dbc62450cdb87559afd15798305e069146.
Caused by #17920.
Closes #19545.
This patch introduced regressions because initializers were no longer
loaded. Specifically missing inflections result in broken restores of
the database.
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 2591e7492d..d168786e71 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -240,7 +240,7 @@ db_namespace = namespace :db do end desc 'Load a schema.rb file into the database' - task :load => [:load_config] do + task :load => [:environment, :load_config] do ActiveRecord::Tasks::DatabaseTasks.load_schema_current(:ruby, ENV['SCHEMA']) end |