Permalink
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...
1 parent db7b311 commit a79f72edc0b67b45daaa8a93bf3a689e6cc858d9 @rafaelfranca rafaelfranca committed Sep 24, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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
```

0 comments on commit a79f72e

Please sign in to comment.