Skip to content

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

Open
@saurabhnanda

Description

@saurabhnanda

(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions