]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/redaction.rb
Adding first cut of Redactions support
[rails.git] / app / models / redaction.rb
diff --git a/app/models/redaction.rb b/app/models/redaction.rb
new file mode 100644 (file)
index 0000000..28a4512
--- /dev/null
@@ -0,0 +1,14 @@
+##
+# Redaction represents a record associated with a particular
+# action on the database to hide revisions from the history
+# which are not appropriate to redistribute any more. 
+#
+# The circumstances of the redaction can be recorded in the
+# record's title and description fields, which can be 
+# displayed linked from the redacted records.
+#
+class Redaction < ActiveRecord::Base
+  has_many :nodes
+  has_many :ways
+  has_many :relations
+end