From 64a38d2bad2418c08679fbbe36491c543635dd03 Mon Sep 17 00:00:00 2001 From: Arpit Chauhan Date: Mon, 8 Aug 2016 12:40:16 +0530 Subject: [PATCH] Rename migration to avoid conflicts The AddMissingIndexes migration conflicts with migrations in other gem(s), eg spree 3.1. The name has been made more specific to avoid such conflicts. --- ..._missing_indexes.rb => 6_add_missing_indexes_on_taggings.rb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename db/migrate/{6_add_missing_indexes.rb => 6_add_missing_indexes_on_taggings.rb} (85%) diff --git a/db/migrate/6_add_missing_indexes.rb b/db/migrate/6_add_missing_indexes_on_taggings.rb similarity index 85% rename from db/migrate/6_add_missing_indexes.rb rename to db/migrate/6_add_missing_indexes_on_taggings.rb index 667c9e33f..8345ae33b 100644 --- a/db/migrate/6_add_missing_indexes.rb +++ b/db/migrate/6_add_missing_indexes_on_taggings.rb @@ -1,4 +1,4 @@ -class AddMissingIndexes < ActiveRecord::Migration +class AddMissingIndexesOnTaggings < ActiveRecord::Migration def change add_index :taggings, :tag_id add_index :taggings, :taggable_id