Difference between revisions of "Rails:Migrations"
Jump to navigation
Jump to search
(Created page with "== Official Documentation == * https://guides.rubyonrails.org/active_record_migrations.html == Schema Migrations == === Generate a Migration === ==== Add a Column ==== == Da...") |
(→Generate a Migration) |
||
Line 4: | Line 4: | ||
== Schema Migrations == | == Schema Migrations == | ||
=== Generate a Migration === | === Generate a Migration === | ||
− | ==== | + | ==== Generic ==== |
+ | <pre># rails g migration <name> | ||
+ | rails g migration CreateCruds</pre> | ||
== Data Migrations == | == Data Migrations == |
Revision as of 17:03, 27 October 2019
Contents
Official Documentation
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?