From 5812515fe5fc55a5d878844a57979394f3057cb7 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 26 Apr 2016 01:14:37 +0200 Subject: [PATCH] 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. --- db/migrate/20160424000002_create_external_sync.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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