minor revision to some new code in databases.rake

This commit is contained in:
Xavier Noria 2011-10-24 14:46:28 +02:00
parent 17bf04ff0d
commit 9dd168c402
1 changed files with 3 additions and 2 deletions

View File

@ -548,8 +548,9 @@ def drop_database_and_rescue(config)
end
def configs_for_environment
environments = [Rails.env, ("test" if Rails.env.development?)]
ActiveRecord::Base.configurations.values_at(*environments).compact
environments = [Rails.env]
environments << 'test' if Rails.env.development?
ActiveRecord::Base.configurations.values_at(*environments)
end
def session_table_name