myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3003] branches/showcase48/app/models/annotation.


From: noreply
Subject: [myexperiment-hackers] [3003] branches/showcase48/app/models/annotation.rb: added annotation model file
Date: Fri, 18 May 2012 10:43:11 +0000 (UTC)

Revision
3003
Author
dgc
Date
2012-05-18 10:43:11 +0000 (Fri, 18 May 2012)

Log Message

added annotation model file

Added Paths

Diff

Added: branches/showcase48/app/models/annotation.rb (0 => 3003)


--- branches/showcase48/app/models/annotation.rb	                        (rev 0)
+++ branches/showcase48/app/models/annotation.rb	2012-05-18 10:43:11 UTC (rev 3003)
@@ -0,0 +1,15 @@
+# myExperiment: app/models/annotations.rb
+#
+# Copyright (c) 2012 University of Manchester and the University of Southampton.
+# See license.txt for details.
+
+class Annotation < ActiveRecord::Base
+
+  belongs_to :research_object
+
+  validates_presence_of :subject_text
+  validates_presence_of :predicate_text
+  validates_presence_of :objekt_text
+
+end
+

reply via email to

[Prev in Thread] Current Thread [Next in Thread]