From 93fadbf32e2b574adf13acc1eb43977f28b545d4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 2 May 2012 02:27:16 +0200 Subject: [PATCH] Added limit for binary col. to support mysql longblob. --- db/migrate/20120101000030_create_storage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20120101000030_create_storage.rb b/db/migrate/20120101000030_create_storage.rb index 218b915f6..e458df436 100644 --- a/db/migrate/20120101000030_create_storage.rb +++ b/db/migrate/20120101000030_create_storage.rb @@ -20,7 +20,7 @@ class CreateStorage < ActiveRecord::Migration add_index :store_objects, [:name], :unique => true create_table :store_files do |t| - t.column :data, :binary + t.column :data, :binary, :limit => 100.megabytes t.column :md5, :string, :limit => 60, :null => false t.timestamps end