add models for Project, Task, Note, Category
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
class User < ApplicationRecord
|
||||
has_secure_password
|
||||
has_many :sessions, dependent: :destroy
|
||||
belongs_to :organization, optional: false
|
||||
has_many :projects
|
||||
has_many :contacts
|
||||
|
||||
normalizes :email_address, with: ->(e) { e.strip.downcase }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user