mirror of https://github.com/rails/rails
Merge pull request #52164 from sampatbadhe/patch-17
Correct table name in schema for add_reference migration in Active Record Migration Documentation [ci skip]
This commit is contained in:
commit
03a399bb08
|
@ -277,7 +277,7 @@ table, where `user_id` is a reference to the `id` column in the `users` table.
|
|||
It also creates an index for the `user_id` column. The schema looks as follows:
|
||||
|
||||
```ruby
|
||||
create_table "users", force: :cascade do |t|
|
||||
create_table "products", force: :cascade do |t|
|
||||
t.bigint "user_id", null: false
|
||||
t.index ["user_id"], name: "index_products_on_user_id"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue