-class OldNode < ActiveRecord::Base
- include GeoRecord
- set_table_name 'nodes'
-
- validates_presence_of :user_id, :timestamp
+class OldNode < ActiveRecord::Base
+ include GeoRecord
+ include ConsistencyValidations
+
+ self.table_name = "nodes"
+ self.primary_keys = "node_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.
+ include Redactable
+
+ validates_presence_of :changeset_id, :timestamp