myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [3183] trunk/db/migrate: Added missing migrations


From: noreply
Subject: [myexperiment-hackers] [3183] trunk/db/migrate: Added missing migrations
Date: Mon, 12 Nov 2012 15:21:44 +0000 (UTC)

Revision
3183
Author
fbacall
Date
2012-11-12 15:21:43 +0000 (Mon, 12 Nov 2012)

Log Message

Added missing migrations

Added Paths

Diff

Added: trunk/db/migrate/20121112133419_change_wsdl_deprecations.rb (0 => 3183)


--- trunk/db/migrate/20121112133419_change_wsdl_deprecations.rb	                        (rev 0)
+++ trunk/db/migrate/20121112133419_change_wsdl_deprecations.rb	2012-11-12 15:21:43 UTC (rev 3183)
@@ -0,0 +1,17 @@
+class ChangeWsdlDeprecations < ActiveRecord::Migration
+  def self.up
+    add_column :wsdl_deprecations, :deprecation_event_id, :integer
+    remove_column :wsdl_deprecations, :details
+    remove_column :wsdl_deprecations, :deprecated_at
+    remove_column :wsdl_deprecations, :created_at
+    remove_column :wsdl_deprecations, :updated_at
+  end
+
+  def self.down
+    remove_column :wsdl_deprecations, :deprecation_event_id
+    add_column :wsdl_deprecations, :details, :text
+    add_column :wsdl_deprecations, :deprecated_at, :datetime
+    add_column :wsdl_deprecations, :created_at, :datetime
+    add_column :wsdl_deprecations, :updated_at, :datetime
+  end
+end

Added: trunk/db/migrate/20121112134053_create_deprecation_events.rb (0 => 3183)


--- trunk/db/migrate/20121112134053_create_deprecation_events.rb	                        (rev 0)
+++ trunk/db/migrate/20121112134053_create_deprecation_events.rb	2012-11-12 15:21:43 UTC (rev 3183)
@@ -0,0 +1,13 @@
+class CreateDeprecationEvents < ActiveRecord::Migration
+  def self.up
+    create_table :deprecation_events do |t|
+      t.string :title
+      t.datetime :date
+      t.text :details
+    end
+  end
+
+  def self.down
+    drop_table :deprecation_events
+  end
+end

reply via email to

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