]> git.openstreetmap.org Git - rails.git/commitdiff
Change comment type from varchar(255) to text
authorKai Krueger <kakrueger@gmail.com>
Sun, 7 Mar 2010 19:09:32 +0000 (19:09 +0000)
committerKai Krueger <kakrueger@gmail.com>
Sun, 7 Mar 2010 19:09:32 +0000 (19:09 +0000)
Some bug comments in the current OSB have more than 255 characters,
so the format needs to be extended to accomodate

db/migrate/052_change_map_bug_comment_type.rb [new file with mode: 0644]

diff --git a/db/migrate/052_change_map_bug_comment_type.rb b/db/migrate/052_change_map_bug_comment_type.rb
new file mode 100644 (file)
index 0000000..bf009c3
--- /dev/null
@@ -0,0 +1,11 @@
+require 'lib/migrate'
+
+class ChangeMapBugCommentType < ActiveRecord::Migration
+  def self.up
+       change_column :map_bug_comment, :comment, :text
+  end
+
+  def self.down
+       change_column :map_bug_comment, :comment, :string
+  end
+end