Jump to content

Rails:Migrations

From Klenwell Wiki

Official Documentation

Database Types

For list of (postgres) column types, see:

Schema Migrations

Generate a Migration

Generic

# rails g migration <name>
rails g migration CreateCruds

Data Migrations

What if you need to do a data migration or data fix on existing data?