-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Rails4 enum column support #130
Conversation
* We can't use `send` because send won't gives us DB values on enum
Thanks @arunagw ! I think the build failures are because of Rails 3 support. Maybe we should remove it. |
@swanandp you mean support for Rails3? May be a check with Rails version? |
I meant we should just remove the Rails3 Gemfile. Because we are not supporting Rails3 in this version. There are older versions for that. |
I was kinda thinking aloud. :-) |
@arunagw can you set up the test to check for Rails version? Run it only if >= 4 ? |
@swanandp I will have a look again soon. |
Restrict enum-specific tests to the rails4 env
@@ -33,6 +37,10 @@ def rails_3 | |||
defined?(ActiveRecord::VERSION) && ActiveRecord::VERSION::MAJOR >= 3 | |||
end | |||
|
|||
def rails_4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about renaming it to rails_4?
I dropped Ruby 1.9.2 support, so we are good. |
send
because send won't gives us DB values on enum