We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddcd468 commit aedc9f5Copy full SHA for aedc9f5
app/models/preference.rb
@@ -2,6 +2,8 @@ class Preference < ApplicationRecord
2
belongs_to :user
3
belongs_to :sms_context, :class_name => 'Context'
4
5
+ validates_uniqueness_of :sms_email, :case_sensitive => false
6
+
7
def self.themes
8
{ :black => 'black', :light_blue => 'light_blue' }
9
end
0 commit comments