how to find a database name into ruby on rails app code example
Example: rails get current database name
Rails.configuration.database_configuration["development"]["database"]
Rails.configuration.database_configuration["development"]["database"]