Sha256: 37b03c97fcc228ee78b4165221d5bdb59bc49c9c401f758615d91439f5815c26

Contents?: true

Size: 710 Bytes

Versions: 38

Compression:

Stored size: 710 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

38 entries across 38 versions & 1 rubygems

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