Ticket 75 (Open)

Created: by Curtis Duhn Mar 09, 2007
Severity: Minor Problem (3 of 5)
Priority: Low (1 of 4)
Attached: Plus Nothing
Assigned: to no one

Migration bug in 014_add_project...

Migration bug in 014_add_project_to_tagging.rb

It adds a project_id column on taggings in self.up, but it doesn't drop it in self.down.

Tags:

This ticket hasn't been tagged yet.

Comments:

Bubble

Curtis Duhn, Mar 09, 2007
Level 2 (Tourist with 50 points)


Here’s a patch:


Index: db/migrate/014_add_project_to_tagging.rb
===================================================================
--- db/migrate/014_add_project_to_tagging.rb    (revision 646)
+++ db/migrate/014_add_project_to_tagging.rb    (working copy)
@@ -12,6 +12,7 @@

   ################################################################################
   def self.down
+    remove_column(:taggings, :project_id)
   end

 end

Have something to say? Login to post a comment.