Sha256: 1500e026af6af14e6e96202513eea1731b71ab610d43a2e87512ad30a22d91f0

Contents?: true

Size: 670 Bytes

Versions: 7

Compression:

Stored size: 670 Bytes

Contents

Description:
    The model generator creates stubs for a new model.

    The generator takes a model name as its argument.  The model name may be
    given in CamelCase or under_score and should not be suffixed with 'Model'.

    The generator creates a model class in app/models, a test suite in
    test/unit, test fixtures in test/fixtures/singular_name.yml, and a migration
    in db/migrate.

Example:
    ./script/generate model Account

    This will create an Account model:
        Model:      app/models/account.rb
        Test:       test/unit/account_test.rb
        Fixtures:   test/fixtures/accounts.yml
        Migration:  db/migrate/XXX_add_accounts.rb

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails-1.1.1 lib/rails_generator/generators/components/model/USAGE
rails-1.1.0 lib/rails_generator/generators/components/model/USAGE
rails-1.1.6 lib/rails_generator/generators/components/model/USAGE
rails-1.1.4 lib/rails_generator/generators/components/model/USAGE
rails-1.1.5 lib/rails_generator/generators/components/model/USAGE
rails-1.1.3 lib/rails_generator/generators/components/model/USAGE
rails-1.1.2 lib/rails_generator/generators/components/model/USAGE