Automatically migrate database when pushing to Heroku

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 #database #heroku https://rubyonrails.ba/single/automatically-migrate-database-when-pushing-to-heroku

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles