From bc10d96a9ea60ec538fe983958c5bf1acbe198f4 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sat, 27 Oct 2012 14:20:11 -0500 Subject: [PATCH] * VRFS-27 tables added --- up/invitations.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/up/invitations.sql b/up/invitations.sql index 72bc8cfad..10d8f8c10 100644 --- a/up/invitations.sql +++ b/up/invitations.sql @@ -6,3 +6,5 @@ CREATE TABLE invitations ( created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); + +ALTER TABLE invitations ADD CONSTRAINT invitations_uniqkey UNIQUE (sender_id, receiver_id, music_session_id);