-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update for Rails 5 #44
Conversation
1 similar comment
2 similar comments
2 similar comments
@plicjo Great job with the pull request. I've also started working on adapting schema_validations, but you obviously beat me to it. :) I'm now reviewing it, but as far as tests and coverage go it looks ready. In the second case, I haven't seen any example of rails using anything besides an integer range, so that might be just fine. I have a workaround ready from my own attempts that allows us to check for @ronen Thoughts? |
@boazy Thank you! If you give me a list of the missing, unsupported types, I can take care of it. I took a look at the Rails source code, and I also came to the conclusion that the #range check appears to only be concerned with integers. |
With the current version of Rails it seems that the only missing type is :money from PostgreSQL which should be mapped to Decimal. I'm more concerned about future types but this particular part of Rails seems prone to breaking changes no matter which implementation we choose. |
I agree, if we convert money to decimal of course. That alone is a regression, although the currwnt behavior ia not fully correct either. This is jus one line. |
Yeah, certainly may as well fix that. Since the current behavior for money is broken, instead of considering it a regression, should we consider it to be a bug fix? And so this would be a patch release rather than major? |
Let's merge and then apply the bugfix then. |
I opened an issue for adding support for the Postgres :money column type. #45 |
Thanks @plicjo. I've merged your pull request and I'll try to fix that issue today. |
@ronen Can you please release a new version? |
Sorry, I got confused and thought I was waiting for another fix from you. Just realized now it's all set (when #47 came in). Released 2.2.0 |
Thanks @ronen! I'll test the new schema_validations today in a live project ;) |
This PR has all of the schema_validations tests passing for Rails 5 and Rails 4.2.
Cheers!