Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Support rails 5.1 #13

Merged
merged 15 commits into from
Nov 18, 2019
Merged

Support rails 5.1 #13

merged 15 commits into from
Nov 18, 2019

Conversation

mcls
Copy link
Contributor

@mcls mcls commented Apr 1, 2018

This builds upon my previous changes form #12 to support rails 5.1

Related issue: #11

Note: I also decided to switch to using appraisal to make it a bit easier to test the different ruby version and Gemfile combinations. The Travis config was also updated to excluded unsupported ruby version and Gemfile combos.

mcls added 11 commits April 1, 2018 14:32
The specs for this version were failing with the following exception:

Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need
NULL in a key, use UNIQUE instead:
CREATE TABLE `balloons` (
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
`color` enum('red','gold') DEFAULT 'gold' NOT NULL,
`size` enum('small','medium','large')
) ENGINE=InnoDB
Same effect, but limited to ActiveRecord's logging only
Instead of defining all helper methods on Object
@mcls mcls force-pushed the mcls/rails-5.1 branch 4 times, most recently from 72e5375 to 65da3ae Compare April 1, 2018 14:59
fruwe and others added 2 commits July 12, 2018 16:15
[FIX] rails db:create failed with wrong number of arguments
@gerryster
Copy link

@iangreenleaf : what are your thoughts on this? My opinion is that it is a high quality pull request with some nice infrastructure additions to the test suite. I would love to see this merged into master and a new version of the gem to be released. Until then, I will have to work around this fix not being applied by forking https://github.com/fruwe/native_enum .

@iangreenleaf
Copy link
Owner

@gerryster thanks for the review and the nudge! You're right, I should get this merged and I feel bad that I haven't done so yet. It's been on my to-do list for months now and just keeps slipping down. I'll aim to get to it this week.

@gerryster
Copy link

Thanks a lot @iangreenleaf! Let me know if there is anything I can do to help.

@gerryster
Copy link

One thing to mention is that I've been using this branch successfully on Rails 5.2.

@iangreenleaf iangreenleaf merged commit ba39416 into iangreenleaf:master Nov 18, 2019
iangreenleaf added a commit that referenced this pull request Nov 18, 2019
@iangreenleaf
Copy link
Owner

Done! Thank you @mcls and @fruwe for the good code and @gerryster for the review and gentle nudge. This is now released as v2.0.0.

@mcls
Copy link
Contributor Author

mcls commented Nov 18, 2019

Thanks!

@gerryster
Copy link

Thanks again @iangreenleaf !

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

Successfully merging this pull request may close these issues.

4 participants