Skip to content

Commit dcadd27

Browse files
authored
correct table name in schema for add_reference migration in Active Record Migration Documentation [ci skip]
1 parent 3accb8d commit dcadd27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_record_migrations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ table, where `user_id` is a reference to the `id` column in the `users` table.
277277
It also creates an index for the `user_id` column. The schema looks as follows:
278278

279279
```ruby
280-
create_table "users", force: :cascade do |t|
280+
create_table "products", force: :cascade do |t|
281281
t.bigint "user_id", null: false
282282
t.index ["user_id"], name: "index_products_on_user_id"
283283
end

0 commit comments

Comments
 (0)