Database Migrations


I have created a migration for creating a table and executed it. Now I want to alter the table? Do I have to create new migration in which in up method specify call the alter table function or there is another way of doing this? Maybe just modify the table structure in the first migration and redoing it.


in development modify your first migration

if your application is already in production, create a new migration class