activerecord-postgres-array icon indicating copy to clipboard operation
activerecord-postgres-array copied to clipboard

Two possible bugs > decimal_array / numeric_array not converting to BigDecimal AND unable to dump schema with decimal_array

Open saurabhnanda opened this issue 12 years ago • 1 comments

(a) I've created a table with a decimal_array (which maps to PG's numeric[]). However, rake is not refusing to dump it in schema.rb with the following error:

Unknown type 'numeric[]' for column 'rate'

(b) However, ActiveRecord still works and is fetching data from the underlying table. Unfortunately it is returning the data as an array of strings instead of an array of BigDecimals.

saurabhnanda avatar Jul 09 '13 12:07 saurabhnanda

Any updates on this?? I seem to be facing the same issue

ashwinsaval avatar Aug 06 '13 05:08 ashwinsaval