This commit is contained in:
John Geiger
2016-06-08 13:54:39 +02:00
5 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
class ChangeCommentTextAttributeToTextDatatype < ActiveRecord::Migration
def up
change_column :comments, :text, :text
end
def down
# This might cause trouble if you have strings longer
# than 255 characters.
change_column :comments, :text, :string
end
end