Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #12341 from odigity/master

added column type to example in section 2.3
Conflicts:
	guides/source/migrations.md

[ci skip]
  • Loading branch information...
commit a79f72edc0b67b45daaa8a93bf3a689e6cc858d9 1 parent db7b311
@rafaelfranca rafaelfranca authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/migrations.md
View
4 guides/source/migrations.md
@@ -314,8 +314,8 @@ will produce a migration that looks like this
```ruby
class AddDetailsToProducts < ActiveRecord::Migration
def change
- add_column :products, :price, precision: 5, scale: 2
- add_reference :products, :user, polymorphic: true, index: true
+ add_column :products, :price, :decimal, precision: 5, scale: 2
+ add_reference :products, :supplier, polymorphic: true, index: true
end
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.