Fixed 'Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE INDEX ON ()'.

This commit is contained in:
Thorsten Eckel 2016-08-17 09:38:04 +02:00
parent 08ea4b2f3d
commit 1654c678f1

View file

@ -183,7 +183,7 @@ class CreateBase < ActiveRecord::Migration
t.integer :created_by_id, null: false
t.timestamps null: false
end
add_index :translations, [:source]
add_index :translations, [:source], length: 255
add_index :translations, [:locale]
create_table :object_lookups do |t|