To list the indexes for a specific table in the console, run the following command: ActiveRecord::Base.connection.indexes(:transactions)
Tag: Console
Heroku – connect to different database and transfer data to current environment
If you run into a situation where you’ve been developing an application in a live heroku development environment and have entered a substantial amount of live data that you don’t want to reenter into your live production environment, then connecting to your development instance’s database and retrieving the specific data you are interested in might […]