/home/web-programming/rubyonrails/

Rails Database Creation

Sample Application

  1. rails new myapp
  2. cd myapp
  3. rails generate scaffold Post title:string body:text
  4. rake db:create
  5. rake db:migrate
  6. rails server

Database Creation