Skip to content

Commit 9787c4f

Browse files
authored
Merge pull request #635 from bazscott/patch-1
Update README.md
2 parents 22f1d3d + 1c5a867 commit 9787c4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ monetize :optional_price_cents, allow_nil: true
138138

139139
# in Migration
140140
def change
141-
add_money :products, :optional_price, amount: { null: true, default: nil }
141+
add_money :products, :optional_price, amount: { null: true, default: nil }, currency: { null: true, default: nil } # Rails 3
142+
add_monetize :products, :optional_price, amount: { null: true, default: nil }, currency: { null: true, default: nil } # Rails 4x and above
142143
end
143144

144145
# now blank assignments are permitted

0 commit comments

Comments
 (0)