Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Typo in Active Record Migrations Guide [ci skip]

  • Loading branch information...
commit a0bdf2fff57c03f9c0d1553a6c9e44d52937dc77 1 parent 08f8c8a
@dkaplan88 dkaplan88 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  guides/source/migrations.md
View
2  guides/source/migrations.md
@@ -314,7 +314,7 @@ will produce a migration that looks like this
class AddDetailsToProducts < ActiveRecord::Migration
def change
add_column :products, :price, precision: 5, scale: 2
- add_reference :products, :user, polymorphic: true, index: true
+ add_reference :products, :supplier, polymorphic: true, index: true
end
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.