-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Update model annotations to use BIGINT for IDs #5461
Update model annotations to use BIGINT for IDs #5461
Conversation
02cf422
to
be2915b
Compare
df91a8f
to
8b1a2fc
Compare
71325e4
to
8b69df8
Compare
Just a quick bump to get some feedback, at least. |
All the migrations have been updated to use BIGINTs for ID fields in the DB, but ActiveRecord needs to be told to treat those values as BIGINT as well. This PR does that.
8b69df8
to
8407946
Compare
Unfortunately, since this is auto-generated, this will all get overwritten the next time we run db:migrate |
That shouldn't be an issue, since the autogenerated annotations should then correctly be |
@danhunsaker Well, for whatever reason, the annotate gem picks them up as integer and not bigint. Otherwise this PR wouldn't have had anything to correct either. |
I was a little confused about why the annotations hadn't been updated already in that case. So we're looking at a bug in the annotations gem, then? |
It is fixed by ctran/annotate_models#515 . But it has not been released yet. |
All the migrations have been updated to use BIGINTs for ID fields in the DB, but ActiveRecord needs to be told to treat those values as BIGINT as well. This PR does that.
All the migrations have been updated to use BIGINTs for ID fields in the DB, but ActiveRecord needs to be told to treat those values as BIGINT as well. This PR does that.