Rails:Migrations

From Klenwell Wiki
Revision as of 18:27, 27 October 2019 by Klenwell (talk | contribs) (Official Documentation)
Jump to navigation Jump to search

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?