Reputation: 842
I deployed my app to Heroku. I lost all data in my database including admin user credential, which I need to initially log into my app to be able to use the app.
How do i populate or push those admin user credential in the Heroku's database? I am not worried about other data since they are all silly test data.
Dev Env-
Rails 4.0.0 SQLite3
Your help will be appreciated a lot. Thanks.
Upvotes: 0
Views: 61
Reputation: 630
You can run the console on the heroku server. Find your way to your project's directory in your terminal and then type heroku run console
. You'll have an irb console where you can simple create an admin with proper credentials.
Upvotes: 1