summaryrefslogtreecommitdiff
path: root/app/models/subscription.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/subscription.rb')
-rw-r--r--app/models/subscription.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/subscription.rb b/app/models/subscription.rb
index dd75d3ab8ba..dd800ce110f 100644
--- a/app/models/subscription.rb
+++ b/app/models/subscription.rb
@@ -15,7 +15,7 @@ class Subscription < ActiveRecord::Base
belongs_to :user
belongs_to :subscribable, polymorphic: true
- validates :user_id,
+ validates :user_id,
uniqueness: { scope: [:subscribable_id, :subscribable_type] },
presence: true
end