ruby on rails - How to check the database name used by activerecord
In database.yml you define all the settings. How can I access those settings from ruby? I've looked in App::Application::config
, but can't find it there. Also, I remember people were able to configure database settings without yaml, does anyone know how?
This question and all comments follow the
"Attribution Required."
Similar questions
- ruby on rails - The reserved name of the activerecord model
- ruby on rails - Using activerecord to store array in database
- ruby on rails - Get table name from activerecord
- ruby on rails - Custom database type in activerecord
- ruby on rails - How to convert activerecord table name to model class name
- More similar questions >>
All Answers
Leave a Reply