Commit 3d1c948ffe1f8068fd55ee79352cd6c016f9761d

Authored by Braulio Bhavamitra
1 parent 81ecee71

environment_notification: shorten index name (fix migration)

plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb
... ... @@ -14,9 +14,11 @@ class CreateNotificationTable < ActiveRecord::Migration
14 14 end
15 15  
16 16 create_table :environment_notifications_users, id: false do |t|
17   - t.belongs_to :environment_notification, index: true
18   - t.belongs_to :user, index: true
  17 + t.belongs_to :environment_notification
  18 + t.belongs_to :user
19 19 end
  20 + add_index :environment_notifications_users, [:environment_notification_id], name: :index_Zaem6uuw
  21 + add_index :environment_notifications_users, [:user_id], name: :index_ap3nohR9
20 22 end
21 23  
22 24 def down
... ...