about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20161119211120_create_notifications.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/migrate/20161119211120_create_notifications.rb b/db/migrate/20161119211120_create_notifications.rb
index dcbe51767..e6bf1d66e 100644
--- a/db/migrate/20161119211120_create_notifications.rb
+++ b/db/migrate/20161119211120_create_notifications.rb
@@ -9,5 +9,6 @@ class CreateNotifications < ActiveRecord::Migration[5.0]
     end
 
     add_index :notifications, :account_id
+    add_index :notifications, [:account_id, :activity_id, :activity_type], unique: true, name: 'account_activity'
   end
 end