diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-06-06 18:50:54 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-06-10 16:58:13 +0300 |
commit | 8f6d43e0fea3ce62ec2e8e211755e557f19c51fd (patch) | |
tree | 72930d029dd905d7630ec07dd65acb0ac4b0739c /app/models/notification_setting.rb | |
parent | f29fd65cdde1d769fc89f0cc57ea989765b5068f (diff) |
Remove notification level from user model
Diffstat (limited to 'app/models/notification_setting.rb')
-rw-r--r-- | app/models/notification_setting.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/notification_setting.rb b/app/models/notification_setting.rb index 17fb15b08df..0ce87968e46 100644 --- a/app/models/notification_setting.rb +++ b/app/models/notification_setting.rb @@ -7,7 +7,6 @@ class NotificationSetting < ActiveRecord::Base belongs_to :source, polymorphic: true validates :user, presence: true - validates :source, presence: true validates :level, presence: true validates :user_id, uniqueness: { scope: [:source_type, :source_id], message: "already exists in source", |