Skip to content

Commit

Permalink
Merge pull request #12341 from odigity/master
Browse files Browse the repository at this point in the history
added column type to example in section 2.3
Conflicts:
	guides/source/migrations.md

[ci skip]
  • Loading branch information
rafaelfranca committed Sep 24, 2013
1 parent db7b311 commit a79f72e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/migrations.md
Expand Up @@ -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
```
Expand Down

0 comments on commit a79f72e

Please sign in to comment.