-
Notifications
You must be signed in to change notification settings - Fork 631
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
Annotate no longer works with Rails 5.2 models #538
Comments
Have you tried it the dev version of annotate gem (see README for instructions)? |
Sorry for the delay! I've been busy with holidays and all. Updating to the dev version mostly works. However, using ActiveStorage's
It seems to still annotate the model (and all other models work fine), but the error is still raised. Let me know if you need any more information! |
@ctran I have same problem on Rails 5.2.0.beta2 and the dev version of annotate gem. Error messages:
I have three models ( |
@ctran I noticed an interesting phenomenon. Annotation goes well on the tables that have foreign key constraints. In order to confirm my theory, I added a column with foreign key constraint to the |
I have same issue with following versions.
|
Same here, with same versions as @fshin1988 except rails 5.2.0.rc1 |
@kuroda, same here Setting |
Also on Ruby 2.5, Rails 2.5.0.beta2 and annotate 2.7.2.
Can confirm that this works 👍 Thanks [at]ammit |
⏫ Same thing with 2.5, Rails 2.5.0.rc1 and annotate 2.7.2. |
There is issue with has one attached file. Solution is to don't show indexes. More info: ctran/annotate_models#538
Setting "show_indexes" to false allows this gem to work in Rails 5.2.0 |
This problem already solved but haven't released... 😢 |
On Rails 5.1, annotate worked as expected. After updating to 5.2, I noticed that annotate was not working as part of my post-update functionality testing.
I have no
frozen string literal
comments in my models.Sample output:
I'm unsure if this affects anything except models, since that's the only functionality I'm using.
Versions
Rails: 5.2.0.beta2
Ruby: 2.4.2
Annotate: 2.7.2
The text was updated successfully, but these errors were encountered: