Sha256: 72750ef3a8a3ad964b58914913a642d2e037be16447cb060ec39a6301bc015c0

Contents?: true

Size: 1.62 KB

Versions: 62

Compression:

Stored size: 1.62 KB

Contents

Description:

        This generator compares your existing schema against the
        schema declared inside your fields declarations in your
        models.

        If the generator finds differences, it will display the
        migration it has created, and ask you if you wish to
        [g]enerate migration, generate and [m]igrate now or [c]ancel?
        Enter "g" to just generate the migration but do not run it.
        Enter "m" to generate the migration and run it, or press "c"
        to do nothing.

        The generator will then prompt you for the migration name,
        supplying a numbered default name.

        The generator is conservative and will prompt you to resolve
        any ambiguities.

Examples:

        $ rails generate hobo:migration

        ---------- Up Migration ----------
        create_table :foos do |t|
          t.datetime :created_at
          t.datetime :updated_at
        end
        ----------------------------------

        ---------- Down Migration --------
        drop_table :foos
        ----------------------------------
        What now: [g]enerate migration, generate and [m]igrate now or [c]ancel? m

        Migration filename:
        (you can type spaces instead of '_' -- every little helps)
        Filename [hobo_migration_2]: create_foo
              exists  db/migrate
              create  db/migrate/20091023183838_create_foo.rb
        (in /work/foo)
        ==  CreateFoo: migrating ======================================================
        -- create_table(:yos)
           -> 0.0856s
        ==  CreateFoo: migrated (0.0858s) =============================================


Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
hobo_fields-2.2.6 lib/generators/hobo/migration/USAGE
hobo_fields-2.2.5 lib/generators/hobo/migration/USAGE
hobo_fields-2.2.4 lib/generators/hobo/migration/USAGE
hobo_fields-2.2.3 lib/generators/hobo/migration/USAGE
hobo_fields-2.2.2 lib/generators/hobo/migration/USAGE
hobo_fields-2.2.1 lib/generators/hobo/migration/USAGE
hobo_fields-2.2.0 lib/generators/hobo/migration/USAGE
hobo_fields-2.1.2 lib/generators/hobo/migration/USAGE
hobo_fields-2.1.1 lib/generators/hobo/migration/USAGE
hobo_fields-2.1.0 lib/generators/hobo/migration/USAGE
hobo_fields-2.1.0.pre4 lib/generators/hobo/migration/USAGE
hobo_fields-2.1.0.pre3 lib/generators/hobo/migration/USAGE
hobo_fields-2.1.0.pre2 lib/generators/hobo/migration/USAGE
hobo_fields-2.1.0.pre1 lib/generators/hobo/migration/USAGE
hobo_fields-2.0.1 lib/generators/hobo/migration/USAGE
hobo_fields-2.0.0 lib/generators/hobo/migration/USAGE
hobo_fields-2.0.0.pre10 lib/generators/hobo/migration/USAGE
hobo_fields-2.0.0.pre9 lib/generators/hobo/migration/USAGE
hobo_fields-2.0.0.pre8 lib/generators/hobo/migration/USAGE
hobo_fields-1.3.3 lib/generators/hobo/migration/USAGE