Green Acorn

Category Archives: Ruby On Rails

Useful Ruby on Rails Commands

1. Create a new Ruby On Rails application using the MySQL database adapter.

rails new ProjectName -d mysql

2. Dump current database schema into db/schema.rb. Migration tasks calls the below command after each run.

rake db:schema:dump

Read more