Fixed: Index name 'index_external_syncs_on_source_and_source_id_and_object_and_o_id' on table 'external_syncs' is too long; the limit is 63 characters.

This commit is contained in:
Martin Edenhofer 2016-04-26 01:14:37 +02:00
parent 05fe899cdd
commit 5812515fe5

View file

@ -9,7 +9,7 @@ class CreateExternalSync < ActiveRecord::Migration
t.timestamps null: false t.timestamps null: false
end end
add_index :external_syncs, [:source, :source_id], unique: true add_index :external_syncs, [:source, :source_id], unique: true
add_index :external_syncs, [:source, :source_id, :object, :o_id] add_index :external_syncs, [:source, :source_id, :object, :o_id], name: 'index_external_syncs_on_source_and_source_id_and_object_o_id'
add_index :external_syncs, [:object, :o_id] add_index :external_syncs, [:object, :o_id]
end end
end end