I Always forget what the Magic Migrations (migration generator names that automatically populate the migration with code) in Rails 3 are, so I thought I’d scratch my own itch and post them here for me (okay, and others) to find:

Rails 3 Magic Migrations


CreateSchemaName field1:type field2:type

AddColumnColumnNameToSchemaName field1:type field2:type

RemoveColumnNameFromSchemaName field1:type field2:type