Skip to content

problem with postgres and boolean #75

@dawidof

Description

@dawidof

I have postgresql database, as column datatype I'm using json and inside hash I have boolean type. If I use array it stores '0' or '1', but not a boolean, if I use hash {false: "Hide", true: "Show"} and before callback self.content['value'] = @value == 'true' if ['true', 'false'].include?(@value) it saves correctly, but shows as it is null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions