aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxedconsulting.com>2016-01-23 19:09:50 +0000
committerAndrew White <andrew.white@unboxedconsulting.com>2016-01-23 19:14:39 +0000
commit83d2c39d5eb8d82ba124b6725d08c8e90760c764 (patch)
tree92496f7222c7843fa1565c1dfcb28b235e2b42f7 /activerecord
parent75a8973c7afbc43d48939942247d27feb0738770 (diff)
downloadrails-83d2c39d5eb8d82ba124b6725d08c8e90760c764.tar.gz
rails-83d2c39d5eb8d82ba124b6725d08c8e90760c764.tar.bz2
rails-83d2c39d5eb8d82ba124b6725d08c8e90760c764.zip
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.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/railties/databases.rake2
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 d81d6b54b3..69a7838001 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/activerecord/lib/active_record/railties/databases.rake
@@ -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