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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -