wazery/ratyrate

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

dboggs95 opened this issue · 3 comments

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.

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

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

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