- set_table_name 'nodes'
-
- validates_presence_of :user_id, :timestamp
- validates_inclusion_of :visible, :in => [ true, false ]
+ include GeoRecord
+ include ConsistencyValidations
+ include ObjectMetadata
+
+ 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
+ validates_inclusion_of :visible, :in => [true, false]