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:
parent
75a8973c7a
commit
83d2c39d5e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue