add models for Project, Task, Note, Category

This commit is contained in:
2025-06-11 19:56:30 +02:00
parent 2a458f74d6
commit 9906b291f1
29 changed files with 345 additions and 1 deletions

7
app/models/contact.rb Normal file
View 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