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

sequel integration fix #350

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HoneyryderChuck
Copy link

fixing fetching default state from db column (:de…fault is db, :ruby_default is ruby)

This was generating an unnecessary warning. This is because sequel (I don't know since when, but long ago) loads column info defaults in db format and ruby format

@sylvainv
Copy link

sylvainv commented Feb 26, 2018

Can this be merged? It is generating unnecessary warnings for me as well. Example on a state column with default value "Draft". Postgresql returns 'Draft'::text, so this is what is returned and being use to compare against "Draft". Which is not correct. :ruby_default indeed returns the proper value for comparison with state value.

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

Successfully merging this pull request may close these issues.

2 participants