correct table name in schema for add_reference migration in Active Record Migration Documentation [ci skip]
This commit is contained in:
parent
3accb8d354
commit
dcadd27cdd
@ -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
Block a user