Skip to content

Instantly share code, notes, and snippets.

@amatsuda
Created April 27, 2012 08:40
Show Gist options
  • Select an option

  • Save amatsuda/2507515 to your computer and use it in GitHub Desktop.

Select an option

Save amatsuda/2507515 to your computer and use it in GitHub Desktop.
a sample Rails app
git :init
git :add => '.'
git :commit => "-m 'Initial commit'"
remove_file 'public/index.html'
git :add => 'public'
git :commit => "-a -m 'rm public/index.html'"
generate :model, 'user name'
generate :model, 'recipe title user:references'
generate :model, 'tsukurepo comment:text user:references recipe:references'
rake 'db:migrate'
git :add => '.'
git :commit => "-m 'generate models'"
gem 'erd'
run 'bundle'
git :add => '.'
git :commit => "-m 'bundle erd'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment