From c291b70ec2b4e1b32914e9afd6bd47a850dafa5d Mon Sep 17 00:00:00 2001 From: Johannes Nickel Date: Wed, 7 Jan 2015 19:23:14 +0100 Subject: [PATCH] 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. --- db/migrate/20141126000001_create_avatar.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/db/migrate/20141126000001_create_avatar.rb b/db/migrate/20141126000001_create_avatar.rb index 5a9c40302..f518df5c3 100644 --- a/db/migrate/20141126000001_create_avatar.rb +++ b/db/migrate/20141126000001_create_avatar.rb @@ -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