To get the database configuration of all environments, run in a Rails console:
To get the database name ActiveRecord is going to use:
You can also use a specific model (useful if you have different models connecting to different databases):
Nov 14, 2024
To get the database configuration of all environments, run in a Rails console:
To get the database name ActiveRecord is going to use:
You can also use a specific model (useful if you have different models connecting to different databases):