ActiveRecord migrations | Notion
ActiveRecord Migrations
Adding multiple columns to a table
Add a reference column to a table
Rollback migrations
Add a new column with an index
Run specific migration
Redo migrations
Remove an existing column from a table
Add a new column to a table
Create a new table
Running migrations
Running migrations in different environments
Add column with default value
Change an existing columns type
Create a hstore column
Add a self reference
Create a join table
Create an array column
Changing Tables
Checking migration status