Skip to content

Commit

Permalink
Cast env to symbol, fixes deprecation warning
Browse files Browse the repository at this point in the history
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
lukaszx0 committed Dec 25, 2013
1 parent 7a9d292 commit dd55033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/tasks/database_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dd55033

Please sign in to comment.