Changes between Version 6 and Version 7 of CommandReference


Ignore:
Timestamp:
10/26/09 22:11:15 (4 years ago)
Author:
andrew
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CommandReference

    v6 v7  
    147147        "Write your backwards migration here" 
    148148}}} 
     149=== Options === 
     150 
     151 * `--model`: Generates a creation migration for the given `modelname`. Can be used more than once. 
     152 * `--add-field`: Generates an add-column migration for `modelname.field`. 
     153 * `--add-index`: Generates an add-index migration for `modelname.field`. 
     154 * `--initial`: Like having --model for every model in your app. You should use this for your first migration. 
     155 * `--auto`: Generates a migration with automatically-detected actions. Relies on having a previous migration with history information attached. 
     156 * `--freeze`: Use `appname` or `appname.modelname` to freeze additional models into the app. 
     157 * `--stdout`: Writes the migration to stdout instead of a file.