Added limit for binary col. to support mysql longblob.

This commit is contained in:
Martin Edenhofer 2012-05-02 02:27:16 +02:00
parent 5b1e46715a
commit 93fadbf32e

View file

@ -20,7 +20,7 @@ class CreateStorage < ActiveRecord::Migration
add_index :store_objects, [:name], :unique => true add_index :store_objects, [:name], :unique => true
create_table :store_files do |t| 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.column :md5, :string, :limit => 60, :null => false
t.timestamps t.timestamps
end end