rake db:drop πŸ‘

Written by osxgirl | Published 2021/06/15
Tech Story Tags: rails | ruby-on-rails | active-record | database | migration | seed | programming | coding

TLDR 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: Createvia the TL;DR App

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

Published by HackerNoon on 2021/06/15