Skip to content

Instantly share code, notes, and snippets.

@bscofield
Created February 10, 2010 02:16
Show Gist options
  • Select an option

  • Save bscofield/299943 to your computer and use it in GitHub Desktop.

Select an option

Save bscofield/299943 to your computer and use it in GitHub Desktop.
[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