Remove superfluous fields from the Link object.
authorWard Vandewege <ward@clinicalfuture.com>
Tue, 26 Feb 2013 22:04:26 +0000 (17:04 -0500)
committerWard Vandewege <ward@clinicalfuture.com>
Tue, 26 Feb 2013 22:04:26 +0000 (17:04 -0500)
db/migrate/20130226170000_remove_native_target_from_links.rb [new file with mode: 0644]

diff --git a/db/migrate/20130226170000_remove_native_target_from_links.rb b/db/migrate/20130226170000_remove_native_target_from_links.rb
new file mode 100644 (file)
index 0000000..d6fa0a5
--- /dev/null
@@ -0,0 +1,10 @@
+class RemoveNativeTargetFromLinks < ActiveRecord::Migration
+  def up
+    remove_column :links, :native_target_id
+    remove_column :links, :native_target_type
+  end
+  def down
+    remove_column :links, :native_target_id, :integer
+    remove_column :links, :native_target_type, :string
+  end
+end