How to store long text to MySql DB using Rails?

Viewed 9695

I am trying to store a long text (in my case a raw rss feed, but could just as well be a long blog post or similar) to a MySql database.

I have a migration with:

change_column :contents, :description, :longtext

But this gives a schema.rb with:

t.text     "description",       :limit => 2147483647

When the limit should in fact have been set to 4294967295.

Why does Rails impose an upper limit which is half of what should be possible?

1 Answers
Related