aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/migration/USAGE
blob: 152e2abdd6282bef27929005b7cd9859f4b5efdd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
            


                                                                              

        
                                            
 

                                                                        
Description:
    Stubs out a new database migration. Pass the migration name, either
    CamelCased or under_scored, as an argument. A migration class is generated
    in db/migrate prefixed by the latest migration number.

Example:
    `./script/generate migration AddSslFlag`

    With 4 existing migrations, this creates the AddSslFlag migration in
    db/migrate/005_add_ssl_flag.rb