paint-brush
rake db:drop ๐Ÿ‘ โ€‚by@osxgirl
150 reads

rake db:drop ๐Ÿ‘

by June 15th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Terminal commands will allow you to delete and re-create your Active Record database. The terminal commands below will let you delete the database and create a migration. The commands below include: Creating a model Herd name:string address:text and Seeding the database. Creating a Migration: Creating an App: Create a Migration. Seeding a migration: Create the database: Creating the migration: Seed the database. Seed the migrations: Create an application: Create your migration: Migration. Create a migration. Seed a migratory. Seed a new database: Create
featured image - rake db:drop ๐Ÿ‘
undefined HackerNoon profile picture

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

my most favorite coding process ๐Ÿ’ฅ
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

Seed the database:

rake db:seed

๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘

// โค๏ธ Thank you Learn.co + https://guides.rubyonrails.org