Sha256: eb6d8fdbb2f5108fd8d13553340b57f77d4c0cf95c8e11c52c726629f996f09e

Contents?: true

Size: 702 Bytes

Versions: 79

Compression:

Stored size: 702 Bytes

Contents

Description:
    Invokes the active_record:model generator, but the generated
    model file contains the fields block, (and the migration option
    is false by default).

Examples:
    $ rails generate hobo:model account

        creates an Account model, test and fixture:
            Model:      app/models/account.rb
            Test:       test/unit/account_test.rb
            Fixtures:   test/fixtures/accounts.yml

    $ rails generate hobo:model post title:string body:text published:boolean

        creates a Post model with a string title, text body, and published flag.

After the model is created, and the fields are specified, use hobo:migration
to create the migrations incrementally.

Version data entries

79 entries across 79 versions & 2 rubygems

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