Added limit for binary col. to support mysql longblob.
This commit is contained in:
parent
5b1e46715a
commit
93fadbf32e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue