Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with postgres and boolean #75

Open
dawidof opened this issue May 18, 2016 · 0 comments
Open

problem with postgres and boolean #75

dawidof opened this issue May 18, 2016 · 0 comments

Comments

@dawidof
Copy link

dawidof commented May 18, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant