Skip to content

Commit

Permalink
connection_config was removed in rails 7
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Feb 5, 2024
1 parent dca47be commit a495d2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vmdb/appliance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def self.log_config(*args)
fh.info("---")

fh.info("DATABASE settings:")
fh.log_hashes(ActiveRecord::Base.connection_config)
fh.log_hashes(ActiveRecord::Base.connection_db_config.configuration_hash)
fh.info("DATABASE settings END")
fh.info("---")
end
Expand Down
2 changes: 1 addition & 1 deletion tools/fix_auth/fix_auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def fix_database_passwords

begin
# in specs, this is already setup
ActiveRecord::Base.connection_config
ActiveRecord::Base.connection_db_config
rescue ActiveRecord::ConnectionNotEstablished
# From the command line, we want to connect to a database
ActiveRecord::Base.logger = Logger.new("#{options[:root]}/log/fix_auth.log")
Expand Down

0 comments on commit a495d2d

Please sign in to comment.