Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
This commit is contained in:
11
app/models/canned_response.rb
Normal file
11
app/models/canned_response.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CannedResponse < ApplicationRecord
|
||||
|
||||
validates_presence_of :content
|
||||
validates_presence_of :short_code
|
||||
validates_presence_of :account
|
||||
validates_uniqueness_of :short_code, scope: :account_id
|
||||
|
||||
belongs_to :account
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user