-
-
Save metasoarous/185646 to your computer and use it in GitHub Desktop.
This file contains 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
#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