Skip to content

Instantly share code, notes, and snippets.

@takipone
Created August 20, 2012 14:22
Show Gist options
  • Save takipone/3404684 to your computer and use it in GitHub Desktop.
Save takipone/3404684 to your computer and use it in GitHub Desktop.
Scaffold commands
rails g scaffold article name:string host_name:string enable:boolean note:text
rails g scaffold schedule name:string code:string description:text enable:boolean note:text start_date:datetime end_date:datetime schedule_type:references entry:integer
rails g scaffold articles_schedules artcle:references schedule:references --id=false --timestamps=false
rails g scaffold schedule_type name:string color:string enable:boolean note:text
rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment