mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] run migration before looking at schema
This commit is contained in:
parent
b9120d1f8c
commit
05602968b9
1 changed files with 2 additions and 2 deletions
|
@ -1546,8 +1546,8 @@ You'll learn a little about associations in the next section of this guide.
|
|||
|
||||
The (`:references`) keyword used in the bash command is a special data type for models.
|
||||
It creates a new column on your database table with the provided model name appended with an `_id`
|
||||
that can hold integer values. You can get a better understanding after analyzing the
|
||||
`db/schema.rb` file below.
|
||||
that can hold integer values. To get a better understanding, analyze the
|
||||
`db/schema.rb` file after running the migration.
|
||||
|
||||
In addition to the model, Rails has also made a migration to create the
|
||||
corresponding database table:
|
||||
|
|
Loading…
Reference in a new issue