add models for Project, Task, Note, Category
This commit is contained in:
8
app/models/project.rb
Normal file
8
app/models/project.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class Project < ApplicationRecord
|
||||
belongs_to :user
|
||||
belongs_to :project_category
|
||||
has_many :contacts, through: :user
|
||||
has_many :tasks
|
||||
has_many :notes
|
||||
enum business_type: { type1: 0, type2: 1 }
|
||||
end
|
||||
Reference in New Issue
Block a user