myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [3002] branches/showcase48/db/migrate/20120518002


From: noreply
Subject: [myexperiment-hackers] [3002] branches/showcase48/db/migrate/20120518002924_create_annotations.rb: added missing migration for annotations table
Date: Fri, 18 May 2012 10:39:01 +0000 (UTC)

Revision
3002
Author
dgc
Date
2012-05-18 10:39:01 +0000 (Fri, 18 May 2012)

Log Message

added missing migration for annotations table

Added Paths

Diff

Added: branches/showcase48/db/migrate/20120518002924_create_annotations.rb (0 => 3002)


--- branches/showcase48/db/migrate/20120518002924_create_annotations.rb	                        (rev 0)
+++ branches/showcase48/db/migrate/20120518002924_create_annotations.rb	2012-05-18 10:39:01 UTC (rev 3002)
@@ -0,0 +1,21 @@
+# myExperiment: db/migrate/20120518002924_create_annotations.rb
+#
+# Copyright (c) 2012 University of Manchester and the University of Southampton.
+# See license.txt for details.
+
+class CreateAnnotations < ActiveRecord::Migration
+  def self.up
+    create_table "annotations", :force => true do |t|
+      t.integer  "research_object_id"
+      t.string   "subject_text"
+      t.string   "predicate_text"
+      t.string   "objekt_text"
+      t.datetime "created_at"
+      t.datetime "updated_at"
+    end
+  end
+
+  def self.down
+    drop_table :announcements
+  end
+end

reply via email to

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