Home Heroku only temporarily saving an instance of db
Reply: 0

Heroku only temporarily saving an instance of db

user624 Published in July 22, 2018, 8:35 pm

I am creating instances of a model in Heroku with PGsql in a Rails app manually using a seed file or just in the heroku console. I'll create them and everything will work fine they will save for a little bit, and the next day those instances I saved will disappear like I never made them. For instance:

Field.create!(name: "Electric Utility Company", api_name: "electric_utility_company", value_type: "picker", level: "audit_report", options: "{ComEd, Ameren Electric,Ameren Gas}")

This will save and I'll be able to see it in my app on heroku. But later it disappears.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.305451 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO