diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-12-25 23:09:31 +0100 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-12-25 23:26:53 +0100 |
commit | dd5503377718e510e9f036261dd9877958713181 (patch) | |
tree | a976b8710434f55095c4d13461e3a81175a8c5df | |
parent | 7a9d2925d7ed05d905161bd4ff3927ef3f42709d (diff) | |
download | rails-dd5503377718e510e9f036261dd9877958713181.tar.gz rails-dd5503377718e510e9f036261dd9877958713181.tar.bz2 rails-dd5503377718e510e9f036261dd9877958713181.zip |
Cast env to symbol, fixes deprecation warning
Warning:
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:development) instead.
-rw-r--r-- | activerecord/lib/active_record/tasks/database_tasks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/tasks/database_tasks.rb b/activerecord/lib/active_record/tasks/database_tasks.rb index 06592eece2..acb7c65af5 100644 --- a/activerecord/lib/active_record/tasks/database_tasks.rb +++ b/activerecord/lib/active_record/tasks/database_tasks.rb @@ -78,7 +78,7 @@ module ActiveRecord each_current_configuration(environment) { |configuration| create configuration } - ActiveRecord::Base.establish_connection environment + ActiveRecord::Base.establish_connection(environment.to_sym) end def drop(*arguments) |