X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e5cbe87ed37f9cba8224fa4049047d7f981f66a..b0ffe17cec6fdd9bb27c1e8a3deb37f46d2d37bf:/app/models/old_relation.rb diff --git a/app/models/old_relation.rb b/app/models/old_relation.rb index c36d64572..9f551d839 100644 --- a/app/models/old_relation.rb +++ b/app/models/old_relation.rb @@ -2,7 +2,7 @@ # # Table name: relations # -# relation_id :bigint(8) default(0), not null, primary key +# relation_id :bigint(8) not null, primary key # changeset_id :bigint(8) not null # timestamp :datetime not null # version :bigint(8) not null, primary key @@ -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.