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