new start rails 3 0904

阅读更多
jruby -S rails new vm_mgmt -d mysql

jruby -S rails generate scaffold User  name:string password:string team:string datastore:string vmhost:string folder:string

db:
create database vm_mgmt_test;
create database vm_mgmt_development;
create database vm_mgmt_production;
grant all on vm_mgmt_development.* to root@localhost;
grant all on vm_mgmt_test.* to root@localhost;
grant all on vm_mgmt_production.* to root@localhost;

follow command cause error
jruby -S rake db:setup RAILS_ENV="development" --trace
jruby -S rake db:create:all


this is ok
jruby -S rake db:migrate

你可能感兴趣的:(new start rails 3 0904)