Fixed 'Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE INDEX ON ()'.
This commit is contained in:
parent
08ea4b2f3d
commit
1654c678f1
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue