don't set a default when adding a couple columns on conversation_messages

The default value would force a table rewrite. The code should just handle
NULL already.

Change-Id: I449c406e204afc97d13693d288c5876373f25eb1
Reviewed-on: https://gerrit.instructure.com/12407
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Zach Wily <zach@instructure.com>
This commit is contained in:
Zach Wily 2012-07-21 07:01:23 -06:00
parent 5249178632
commit f263132121
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@ class AddConversationMessageProperties < ActiveRecord::Migration
tag :predeploy
def self.up
add_column :conversation_messages, :has_attachments, :boolean, :default => false
add_column :conversation_messages, :has_media_objects, :boolean, :default => false
add_column :conversation_messages, :has_attachments, :boolean
add_column :conversation_messages, :has_media_objects, :boolean
end
def self.down