diff --git a/db/migrate/20160424000002_create_external_sync.rb b/db/migrate/20160424000002_create_external_sync.rb index 42d585305..03ae0ce85 100644 --- a/db/migrate/20160424000002_create_external_sync.rb +++ b/db/migrate/20160424000002_create_external_sync.rb @@ -9,7 +9,7 @@ class CreateExternalSync < ActiveRecord::Migration t.timestamps null: false end 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] end end