From: Jean-Philippe Lang Date: Wed, 5 Mar 2008 09:16:19 +0000 (+0000) Subject: Fixes migration 87 error when running MySQL with STRICT_TRANS_TABLES on (#771). X-Git-Tag: 0.7.0-RC1~99 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b0754ca720f6262dd3b6f16eac23082d28d6fae6;p=redmine.git Fixes migration 87 error when running MySQL with STRICT_TRANS_TABLES on (#771). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1189 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/db/migrate/087_change_projects_description_to_text.rb b/db/migrate/087_change_projects_description_to_text.rb index b06b0aa1c..132e921b3 100644 --- a/db/migrate/087_change_projects_description_to_text.rb +++ b/db/migrate/087_change_projects_description_to_text.rb @@ -1,6 +1,6 @@ class ChangeProjectsDescriptionToText < ActiveRecord::Migration def self.up - change_column :projects, :description, :text, :null => true + change_column :projects, :description, :text, :null => true, :default => nil end def self.down