You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found a mismatch in the types for various columns, between the schema and the annotations. For example, in changeset_comments, changeset_id and author_id have different types:
# == Schema Information
#
# Table name: changeset_comments
#
# id :integer not null, primary key
# changeset_id :integer not null
# author_id :integer not null
CREATE TABLE public.changeset_comments (
id integer NOT NULL,
changeset_id bigint NOT NULL,
author_id bigint NOT NULL,
I think that it's the annotations need to be updated, but I'm not certain. I created my local database before b606acb so I'm being cautious as to which one is incorrect. Any thoughts?
To fix, with a known-good database structure, simply run 'bundle exec rake db:migrate' and it will change the annotations.
The text was updated successfully, but these errors were encountered:
Ah, it's actually a change in the annotate gem, which showed bigint columns as integers in the version that we used for the first run of annotations. I'm surprised that nobody has encountered this more recently.
I've found a mismatch in the types for various columns, between the schema and the annotations. For example, in changeset_comments, changeset_id and author_id have different types:
I think that it's the annotations need to be updated, but I'm not certain. I created my local database before b606acb so I'm being cautious as to which one is incorrect. Any thoughts?
To fix, with a known-good database structure, simply run 'bundle exec rake db:migrate' and it will change the annotations.
The text was updated successfully, but these errors were encountered: