diff options
author | kennyj <kennyj@gmail.com> | 2012-06-28 00:38:35 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-06-28 00:38:35 +0900 |
commit | 6498bbe5146981dd6ca02f99dba5e10c18d8bc34 (patch) | |
tree | 021d457dbefb1cae65c95bd84c4c8ac6bdc803cd | |
parent | 066e839467a13b4cdffa4a3659a7140e9ea9dca1 (diff) | |
download | rails-6498bbe5146981dd6ca02f99dba5e10c18d8bc34.tar.gz rails-6498bbe5146981dd6ca02f99dba5e10c18d8bc34.tar.bz2 rails-6498bbe5146981dd6ca02f99dba5e10c18d8bc34.zip |
Fix wrong environment. env should be RAILS_ENV or test.
-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 1dcd0a5a32..c6ec946b73 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -313,7 +313,7 @@ db_namespace = namespace :db do filename = ENV['DB_STRUCTURE'] || File.join(Rails.root, "db", "structure.sql") case abcs[env]['adapter'] when /mysql/, /postgresql/, /sqlite/ - ActiveRecord::Tasks::DatabaseTasks.structure_load(abcs[Rails.env], filename) + ActiveRecord::Tasks::DatabaseTasks.structure_load(abcs[env], filename) when 'sqlserver' `sqlcmd -S #{abcs[env]['host']} -d #{abcs[env]['database']} -U #{abcs[env]['username']} -P #{abcs[env]['password']} -i #{filename}` when 'oci', 'oracle' |