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

Does not work on Rails 5.1.4 - Migrations made for Rails 4.2 #152

Open
dboggs95 opened this issue Nov 14, 2017 · 3 comments
Open

Does not work on Rails 5.1.4 - Migrations made for Rails 4.2 #152

dboggs95 opened this issue Nov 14, 2017 · 3 comments

Comments

@dboggs95
Copy link

When I install the gem from the repository, and then generate a ratyrate on User. It gives me four database migrations. They are all formatted for Rails 4. I assumed this would work for Rails 5 as it is up to date supposedly. I've spent an hour trying to fix the migrations. I have concluded that to do so I would need to rename the column names that are longer than 62 characters, because Rails is throwing a fit over long table column names. I can't really do that though, because I have no idea what would break if I did. Please fix the migrations.

Thanks.

@azizmashkour
Copy link

Hi @darylboggs-2018. This is the updated and tested version for Rails 5, I have tried to submit a PR but no success. Then I have uploaded it to my own repository that can be found here: https://github.com/azizmashkour/rails-5-ratyrate

@dboggs95
Copy link
Author

dboggs95 commented May 2, 2018

Thanks Aziz. I'm working on a project now, so I'll try it out.

@dboggs95
Copy link
Author

dboggs95 commented May 2, 2018

I've made additional corrections. They are in the patch-1 branch.
https://github.com/dboggs95/rails-5-ratyrate/tree/patch-1

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

No branches or pull requests

2 participants