ruby on rails - Why is my database info not showing up on Heroku? -
as can see here in rails console have 4 blogs in heroku console have 0. pushed current progress heroku. i'm using postgresql. missing obvious getting information db heroku or have problem elsewhere?
$ rails console running via spring preloader in process 28133 loading development environment (rails 4.2.0) irb(main):001:0> blog.all.count (0.4ms) select count(*) "blogs" => 4 $ heroku run console running console on ⬢ morning-lowlands-91946... up, run.4970 loading production environment (rails 4.2.0) irb(main):001:0> blog.all.count (1.2ms) select count(*) "blogs" (1.2ms) select count(*) "blogs" => 0
i missing obvious.
yes. heroku based on git. git not track database changes.
Comments
Post a Comment