Sha256: 5aa9667a6d22e3609603967e468a7181e252df310252a8c917a928299e10d890

Contents?: true

Size: 1.03 KB

Versions: 7

Compression:

Stored size: 1.03 KB

Contents

Description:
    Stubs out a new (second)database migration. Pass the migration name, either
    CamelCased or under_scored, and an optional list of attribute pairs as arguments.

    For your organizational convenience, a migration class is generated in 
    db/migrate/secondbase prefixed by a timestamp of the current date and time.

    You can name your migration in either of these formats to generate add/remove
    column lines from supplied attributes: AddColumnsToTable or RemoveColumnsFromTable

Example:
    `rails generate secondbase:migration AddSslFlag`

    If the current date is May 14, 2008 and the current time 09:09:12, this creates the AddSslFlag migration
    db/migrate/secondbase/20080514090912_add_ssl_flag.rb

    You can continue to use `rake db:migrate` to migrate your first and second databases, or you can 
    target secondbase by using `rake db:migrate:secondbase`.  Remember, your migrations are timestamped, 
    so regardless of the database they target, they will be unique and you will not have collision issues.

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
secondbase-0.6.0 lib/generators/secondbase/USAGE
secondbase-0.5.0 lib/generators/secondbase/USAGE
secondbase-0.4.3 lib/generators/secondbase/USAGE
secondbase-0.4.2 lib/generators/secondbase/USAGE
secondbase-0.4.1 lib/generators/secondbase/USAGE
secondbase-0.4.0 lib/generators/secondbase/USAGE
secondbase-0.3.3 lib/generators/secondbase/USAGE