Changed Migration: InnoDB can't store Indexes over 767 bytes. UTF-8 on MySQL uses 3 byte per char so the max would be: 255 Chars.

The index is not really needed, so I removed it.
This commit is contained in:
Johannes Nickel 2015-01-07 19:23:14 +01:00
parent 80877854af
commit c291b70ec2

View file

@ -18,7 +18,6 @@ class CreateAvatar < ActiveRecord::Migration
add_index :avatars, [:o_id, :object_lookup_id]
add_index :avatars, [:store_hash]
add_index :avatars, [:source]
add_index :avatars, [:source_url]
add_index :avatars, [:default]
end