Skip to content
Browse files

Merge pull request #13488 from strzalek/fix-railties-warnings

Fix railties warnings
  • Loading branch information...
2 parents 278bbfd + dd55033 commit e9f8fe27078dc8cb2093cd5ee4b3aee19f379fdc @guilleiguaran guilleiguaran committed
View
1 activerecord/lib/active_record/railtie.rb
@@ -137,6 +137,7 @@ class Railtie < Rails::Railtie # :nodoc:
ActiveSupport.on_load(:active_record) do
class ActiveRecord::NoDatabaseError
+ remove_possible_method :extend_message
def extend_message(message)
message << "Run `$ bin/rake db:create db:migrate` to create your database"
message
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 e9f8fe2

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