X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a4edd3fd04b3f97fcff2fd77977fd2e2324f30d8..b8b9c3d1e9e412178426e9ba1b612e14e09f2320:/app/models/old_way.rb diff --git a/app/models/old_way.rb b/app/models/old_way.rb index dabf0aafb..a9c55cf30 100644 --- a/app/models/old_way.rb +++ b/app/models/old_way.rb @@ -2,10 +2,10 @@ # # Table name: ways # -# way_id :bigint(8) not null, primary key -# changeset_id :bigint(8) not null +# way_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 OldWay < ApplicationRecord - include ConsistencyValidations - self.table_name = "ways" - self.primary_keys = "way_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.