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
This commit is contained in:
parent
4f9f3097d9
commit
b0754ca720
|
@ -1,6 +1,6 @@
|
||||||
class ChangeProjectsDescriptionToText < ActiveRecord::Migration
|
class ChangeProjectsDescriptionToText < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
change_column :projects, :description, :text, :null => true
|
change_column :projects, :description, :text, :null => true, :default => nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
|
|
Loading…
Reference in New Issue