Add environment back to db:structure:load

Because of the changes in #22967 the assumption in #18907 is no longer
true because the internal metadata feature for Active Record requires
a working environment.
This commit is contained in:
Andrew White 2016-01-23 19:09:50 +00:00
parent 75a8973c7a
commit 83d2c39d5e
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ db_namespace = namespace :db do
end
desc "Recreates the databases from the structure.sql file"
task :load => [:load_config] do
task :load => [:environment, :load_config] do
ActiveRecord::Tasks::DatabaseTasks.load_schema_current(:sql, ENV['SCHEMA'])
end