correct table name in schema for add_reference migration in Active Record Migration Documentation [ci skip]

This commit is contained in:
Sampat Badhe 2024-06-20 09:52:52 +05:30 committed by GitHub
parent 3accb8d354
commit dcadd27cdd
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