Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix wrong environment. env should be RAILS_ENV or test.

  • Loading branch information...
commit 6498bbe5146981dd6ca02f99dba5e10c18d8bc34 1 parent 066e839
Toshinori Kajihara authored
2  activerecord/lib/active_record/railties/databases.rake
@@ -313,7 +313,7 @@ db_namespace = namespace :db do
313 313 filename = ENV['DB_STRUCTURE'] || File.join(Rails.root, "db", "structure.sql")
314 314 case abcs[env]['adapter']
315 315 when /mysql/, /postgresql/, /sqlite/
316   - ActiveRecord::Tasks::DatabaseTasks.structure_load(abcs[Rails.env], filename)
  316 + ActiveRecord::Tasks::DatabaseTasks.structure_load(abcs[env], filename)
317 317 when 'sqlserver'
318 318 `sqlcmd -S #{abcs[env]['host']} -d #{abcs[env]['database']} -U #{abcs[env]['username']} -P #{abcs[env]['password']} -i #{filename}`
319 319 when 'oci', 'oracle'

0 comments on commit 6498bbe

Please sign in to comment.
Something went wrong with that request. Please try again.