Hackernoon logorake db:drop πŸ‘ by@osxgirl

rake db:drop πŸ‘

image

The terminal commands below will allow you to delete and re-create your Active Record database.

my most favorite coding process πŸ’₯
image
rake db:drop
rake db:create
rake db:migrate
rake db:seed

Create a Rails App :

rails new sheep

gem install bindexΒ 

Create a Migration :

rails generate model Herd name:string address:text

rake db:migrate
image

Seed the database:

rake db:seed

image

πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘

// ❀️ Thank you Learn.co + https://guides.rubyonrails.org

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.