Automatically migrate database when pushing to Heroku
03-Dec-2020 2682
I used to freak out when seeing this, but most of the time it is caused by me forgetting to run rake db:migrate after deploying a feature which has new database migrations.If you view logs of the app, and see there’s an error saying ‘relation “table_name” does not exist’ , it means the database migration is not run hence no table is created.
Automatically migrate database when pushing to Heroku #ruby #rubydeveloper #rubyonrails #Automatically #migrate #database #pushing #Heroku #database #heroku https://rubyonrails.ba/link/automatically-migrate-database-when-pushing-to-heroku