Skip to content
Browse files

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.
  • Loading branch information...
1 parent 7a9d292 commit dd5503377718e510e9f036261dd9877958713181 @lukaszx0 lukaszx0 committed Dec 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/tasks/database_tasks.rb
View
2 activerecord/lib/active_record/tasks/database_tasks.rb
@@ -78,7 +78,7 @@ def create_current(environment = env)
each_current_configuration(environment) { |configuration|
create configuration
}
- ActiveRecord::Base.establish_connection environment
+ ActiveRecord::Base.establish_connection(environment.to_sym)
end
def drop(*arguments)

0 comments on commit dd55033

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