mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
3236e15cb7
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
17 lines
527 B
Text
17 lines
527 B
Text
GENERATOR
|
|
model - create model stub files
|
|
|
|
SYNOPSIS
|
|
generate model ModelName
|
|
|
|
DESCRIPTION
|
|
The model generator takes a model name and generates an empty model in
|
|
app/models, a test suite in test/unit with one passing test case, and a
|
|
fixtures YAML file in the test/fixtures directory.
|
|
|
|
EXAMPLE
|
|
./script/generate model Account
|
|
|
|
This will generate an Account class in app/models/account.rb, an
|
|
AccountTest in test/unit/account_test.rb, and the fixtures file
|
|
test/fixtures/account.yml.
|