X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4c4150e0d0dc43c0468388956728d8ffc43e6c9c..ab4f96261fe043ba704616e8b6f7cf77e79817bf:/app/models/old_relation.rb?ds=sidebyside diff --git a/app/models/old_relation.rb b/app/models/old_relation.rb index 6f122b260..42f363f0e 100644 --- a/app/models/old_relation.rb +++ b/app/models/old_relation.rb @@ -2,10 +2,10 @@ # # Table name: relations # -# relation_id :bigint(8) not null, primary key -# changeset_id :bigint(8) not null +# relation_id :bigint not null, primary key +# changeset_id :bigint not null # timestamp :datetime not null -# version :bigint(8) not null, primary key +# version :bigint not null, primary key # visible :boolean default(TRUE), not null # redaction_id :integer # @@ -21,10 +21,7 @@ # class OldRelation < ApplicationRecord - include ConsistencyValidations - self.table_name = "relations" - self.primary_keys = "relation_id", "version" # NOTE: this needs to be included after the table name changes, or # the queries generated by Redactable will use the wrong table name.