add models for Project, Task, Note, Category
This commit is contained in:
7
app/models/contact.rb
Normal file
7
app/models/contact.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Contact < ApplicationRecord
|
||||
has_many :phone_numbers
|
||||
belongs_to :user
|
||||
|
||||
validates :name, presence: true
|
||||
validates :email, format: { with: URI::MailTo::EMAIL_REGEXP }, allow_blank: true
|
||||
end
|
||||
Reference in New Issue
Block a user