]> source.dussan.org Git - redmine.git/commitdiff
Fixes migration 87 error when running MySQL with STRICT_TRANS_TABLES on (#771).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 5 Mar 2008 09:16:19 +0000 (09:16 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 5 Mar 2008 09:16:19 +0000 (09:16 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1189 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/087_change_projects_description_to_text.rb

index b06b0aa1cdb4375089202faba19ec0395ce06ffe..132e921b348e22358989d82b5bcf40c1851db761 100644 (file)
@@ -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