Created
February 10, 2010 02:16
-
-
Save bscofield/299943 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| [rails2] > ./script/generate model Person name:string | |
| exists app/models/ | |
| exists test/unit/ | |
| exists test/fixtures/ | |
| create app/models/person.rb | |
| create test/unit/person_test.rb | |
| create test/fixtures/people.yml | |
| exists db/migrate | |
| create db/migrate/20100210021556_create_people.rb | |
| [rails3] > rails generate model Person name:string | |
| invoke active_record | |
| create db/migrate/20100210021556_create_people.rb | |
| create app/models/person.rb | |
| invoke test_unit | |
| create test/unit/person_test.rb | |
| create test/fixtures/people.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment