rails:
rails -d mysql test
create files for rails project, using mysql
( default is sqlite)
generate:
script/generate controller rabbit index create rabbit controller with index action, rabbit test, rabbit helper & index template in the rabbit view
rake:
rake db:migrate
create the table in the database based on the migration file
script/console:
-s: Any modifications you make will be rolled back on exit
沒有留言:
張貼留言