Skip to content

Instantly share code, notes, and snippets.

@metasoarous
Created September 11, 2009 23:11
Show Gist options
  • Save metasoarous/185646 to your computer and use it in GitHub Desktop.
Save metasoarous/185646 to your computer and use it in GitHub Desktop.
#create the rails project using mysql as db instead of sqlite
rails -d mysql ProjectName
#set up db
mysqladmin -u root create project_name_development
mysqladmin -u root create project_name_test
...
#Do all yer configuring stuff with for db in config/database.yml
#if you want to have authentication (assuming you want activation)
./script/generate authenticated user sessions --include-activation --aasm
#generate other scaffolds and such
./script/generate scaffold model_name field1:type field2:type [...]
#migrate the database
rake:db migrate
#code, rinse, repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment