jackdempsey / acts_as_commentable

The ActiveRecord acts_as_commentable plugin
http://juixe.com/svn/acts_as_commentable/
MIT License
833 stars 177 forks source link

Migration Issue #5

Closed kaleemullah closed 14 years ago

kaleemullah commented 14 years ago

Mysql::Error: BLOB/TEXT column 'comment' can't have a default value: CREATE TABL E comments (id int(11) DEFAULT NULL auto_increment PRIMARY KEY, title varc har(50) DEFAULT '', comment text DEFAULT '', commentable_id int(11), commen table_type varchar(255), user_id int(11), created_at datetime, updated_at datetime) ENGINE=InnoDB

I just remove 'default => "" ' infront of "comment" column and it works.

jackdempsey commented 14 years ago

I don't see this happen locally. At the same time, I also don't see this default piece do anything to the final result ( I get a comment field with a NULL default ) so I'll remove it. Would appreciate others feedback on whether this works well for them.

jackdempsey commented 14 years ago

No longer a default on :comment, so closing.