X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e5cbe87ed37f9cba8224fa4049047d7f981f66a..30415443e95494fd9c217c7d83c9aa2d13d203fd:/app/models/old_way.rb diff --git a/app/models/old_way.rb b/app/models/old_way.rb index fcff84ede..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) default(0), 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.