ruby on rails常用命令mark

1. RAILS_ENV=production rails s启动服务器

2. RAILS_ENV=production rails generate controller ProductionArray

3. RAILS_ENV=production rails generate migrations CreateProductionArray

4. RAILS_ENV=production rake db:migrate version=201602062117

5. RAILS_ENV=production rake db:rollback STEP=n

6. RAILS_ENV=production rake db:migrate:down (version=nnn)

7. RAILS_ENV=production rake assets:precompile

 

你可能感兴趣的:(ruby on rails常用命令mark)