Displaying 1 result from an estimated 1 matches for "hyou".
Did you mean:
hou
2006 Mar 01
2
active_record postgresql adapter problem
...d add a row I get the following. How do I
override AR default behaviour to cast numeric post data to money, or am
I forced to only support database types that active_record knows about?
RuntimeError: ERROR C42804 Mcolumn "unit_price" is of type money but
expression is of type numeric HYou will need to rewrite or cast the
expression. Fparse_target.c L361 RupdateTargetListEntry: INSERT INTO
line_items ("order_id", "product_id", "quantity", "unit_price")
VALUES(1, 3, 1.0, 5367829.95)
Regards,
Jim
--
Posted via http://www.ruby-forum.com/.