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