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

Rails4 enum column support #130

Merged
merged 3 commits into from
Dec 24, 2014
Merged

Rails4 enum column support #130

merged 3 commits into from
Dec 24, 2014

Conversation

arunagw
Copy link
Contributor

@arunagw arunagw commented Sep 22, 2014

  • We can't use send because send won't gives us DB values on enum

* We can't use `send` because send won't gives us DB values on enum
@swanandp
Copy link
Contributor

Thanks @arunagw ! I think the build failures are because of Rails 3 support. Maybe we should remove it.

@arunagw
Copy link
Contributor Author

arunagw commented Sep 23, 2014

@swanandp you mean support for Rails3?

May be a check with Rails version?

@swanandp
Copy link
Contributor

I meant we should just remove the Rails3 Gemfile. Because we are not supporting Rails3 in this version. There are older versions for that.

@swanandp
Copy link
Contributor

I was kinda thinking aloud. :-)

@swanandp
Copy link
Contributor

@arunagw can you set up the test to check for Rails version? Run it only if >= 4 ?

@arunagw
Copy link
Contributor Author

arunagw commented Sep 25, 2014

@swanandp I will have a look again soon.

Restrict enum-specific tests to the rails4 env
@arunagw
Copy link
Contributor Author

arunagw commented Dec 23, 2014

Hey @swanandp I have got a PR from @smadeja in my fork and I have merged that so this PR is updated.

Please have a look one more time.

@@ -33,6 +37,10 @@ def rails_3
defined?(ActiveRecord::VERSION) && ActiveRecord::VERSION::MAJOR >= 3
end

def rails_4
Copy link
Contributor

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?

swanandp added a commit that referenced this pull request Dec 24, 2014
@swanandp swanandp merged commit a1a8e63 into brendon:master Dec 24, 2014
@swanandp
Copy link
Contributor

I dropped Ruby 1.9.2 support, so we are good.

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.

3 participants