From 3d1c948ffe1f8068fd55ee79352cd6c016f9761d Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Sat, 21 Nov 2015 09:41:24 -0300 Subject: [PATCH] environment_notification: shorten index name (fix migration) --- plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb b/plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb index 2833b07..a83cd10 100644 --- a/plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb +++ b/plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb @@ -14,9 +14,11 @@ class CreateNotificationTable < ActiveRecord::Migration end create_table :environment_notifications_users, id: false do |t| - t.belongs_to :environment_notification, index: true - t.belongs_to :user, index: true + t.belongs_to :environment_notification + t.belongs_to :user end + add_index :environment_notifications_users, [:environment_notification_id], name: :index_Zaem6uuw + add_index :environment_notifications_users, [:user_id], name: :index_ap3nohR9 end def down -- libgit2 0.21.2