mirror of https://github.com/rails/rails
Clarify what 'running a migration' means
It is not obvious to beginners that by 'running a migration' we mean executing the `bin/rails db:migrate` command.
This commit is contained in:
parent
037339e892
commit
f1330049e1
|
@ -1766,7 +1766,7 @@ and in `app/controllers/comments_controller.rb`:
|
|||
end
|
||||
```
|
||||
|
||||
Within the `article` model, after running a migration to add a `status` column, you would add:
|
||||
Within the `article` model, after running a migration to add a `status` column using `bin/rails db:migrate` command, you would add:
|
||||
|
||||
```ruby
|
||||
class Article < ApplicationRecord
|
||||
|
|
Loading…
Reference in New Issue