Answers for "find database name in ruby on rails console"

1

How to find database name in rails console

ActiveRecord::Base.connection.current_database
Posted by: Guest on November-16-2021
1

rails get current database name

Rails.configuration.database_configuration["development"]["database"]
Posted by: Guest on November-23-2020

Code answers related to "find database name in ruby on rails console"

Browse Popular Code Answers by Language