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:
Hartley McGuire 2024-06-20 00:31:33 -04:00 committed by GitHub
commit 03a399bb08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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