module

ActiveRecord::ConnectionHandling

v7.1.3.2 - Show latest stable

Constants

DEFAULT_ENV = -> { RAILS_ENV.call || "default_env" }

RAILS_ENV = -> { (Rails.env if defined?(Rails.env)) || ENV["RAILS_ENV"].presence || ENV["RACK_ENV"].presence }

Attributes

[W]connection_specification_name

Files

  • activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
  • activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
  • activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
  • activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb
  • activerecord/lib/active_record/connection_handling.rb