From 44061fcaa54ba611f1681c34c5cb35c4e3a87247 Mon Sep 17 00:00:00 2001 From: Joeycho Date: Fri, 24 Apr 2020 17:46:56 +0200 Subject: [PATCH] typo update(rails db:.. -> rake db:..) It was typos. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a21fe88..46689c5 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ class CreateBirds < ActiveRecord::Migration[5.2] end ``` -Then run `rails db:migrate` to create the schema. We set this up first because +Then run `rake db:migrate` to create the schema. We set this up first because we quickly move away from working directly with the database. With Rails, we actually want to create a model to represent and manipulate the data. Create the following `Bird` model in `app/models/bird.rb`: @@ -72,7 +72,7 @@ end > `save` without having to include any additional methods. With a model and the database set up, we can add a little data to help display -our view later. Some seed data is provided in `db/seeds.rb`; just run `rails +our view later. Some seed data is provided in `db/seeds.rb`; just run `rake db:seed` and it should create four `Bird` records. You can always check these by running `rails console`, then use `Bird.all` to confirm these instances are appearing.