Skip to content

Commit

Permalink
Minor reword to Migrations without Models section
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaddox19 authored Apr 30, 2020
1 parent 12c653f commit 3e777b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 08-rails/active-record-migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Not all migrations can roll back smoothly. Any time you are running a migration
To create our new database schema, we are going to run `rails db:migrate`.

### Migrations without Models
Often, you will need to modify the database schema outside the confines of creating a new _model_. A really common example is altering a _column_ name or datatype of an existing table. Just like `rails` can generate _models_, it can generate _migrations_ that are not associated with a model:
Often, you will need to modify the database schema outside the confines of creating a new _model_. When we use `rails` to generate a _model_, a _migration_ is generated as well. We can also use `rails` to generate a _migration_ without creating a new _model_. A really common example is altering a _column_ name or datatype of an existing table.

```bash
$ rails generate migration add_description_to_books
Expand Down

0 comments on commit 3e777b5

Please sign in to comment.