Sha256: 48f320bdbf731644e625089eccff42ffc936e21b05d17f2bece93dc5196758e6

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

Description:
  Stubs out a new model. Pass the model name, either CamelCased or
  under_scored, and an optional list of attribute pairs as arguments.

  Attribute pairs are column_name:sql_type arguments specifying the
  model's attributes. Timestamps are added by default, so you don't have to
  specify them by hand as 'created_at:datetime updated_at:datetime'.

  You don't have to think up every attribute up front, but it helps to
  sketch out a few so you can start working with the model immediately.

Examples:
    `newplugin-gen model account`

    `newplugin-gen model post title:string body:text published:boolean`

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
newplugin-0.0.4 newplugin_generators/model/USAGE