Created
June 27, 2009 18:51
-
-
Save josevalim/137077 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jose:~/Work/github/rails/railties$[gen*] ruby bin/gen model | |
Usage: | |
bin/gen model NAME [field:type, field:type] [options] | |
Options: | |
-o, [--orm=NAME] # Orm to be invoked | |
# Default: active_record | |
-t, [--test-framework=NAME] # Test framework to be invoked | |
# Default: test_unit | |
ActiveRecord options: | |
[--timestamps] # Indicates when to generate timestamps | |
# Default: true | |
[--migration] # Indicates when to generate migration | |
# Default: true | |
[--parent=PARENT] # The parent class for the generated model | |
TestUnit options: | |
[--fixture] # Indicates when to generate fixture | |
# Default: true | |
-r, [--fixture-replacement=NAME] # Fixture replacement to be invoked | |
Runtime options: | |
-p, [--pretend] # Run but do not make any changes | |
-f, [--force] # Overwrite files that already exist | |
-s, [--skip] # Skip files that already exist | |
-q, [--quiet] # Supress status output | |
Description: | |
Stubs out a new model. Pass the model name, either CamelCased or | |
under_scored, and an optional list of attribute pairs as arguments. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment