Sha256: 36fa64ba81bf356203e97440da7ac8a265afd7b91fe0fd92a67bd616b49f0d7b
Contents?: true
Size: 757 Bytes
Versions: 7
Compression:
Stored size: 757 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 Viewhints: app/viewhints/account_hints.rb $ 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
7 entries across 7 versions & 1 rubygems