Skip to content

Commit

Permalink
Merge pull request #335 from bb/patch-1
Browse files Browse the repository at this point in the history
Access configuration_hash using symbols
  • Loading branch information
keithdoggett committed Feb 21, 2021
2 parents dd67ea8 + 2e1894d commit 56c2d1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace :db do
environments.each do |environment|
ActiveRecord::Base.configurations
.configs_for(env_name: environment)
.reject { |env| env.configuration_hash['database'].blank? }
.reject { |env| env.configuration_hash[:database].blank? }
.each do |env|
ActiveRecord::ConnectionAdapters::PostGIS::PostGISDatabaseTasks.new(env).setup_gis
end
Expand Down

0 comments on commit 56c2d1d

Please sign in to comment.