add models for Project, Task, Note, Category
This commit is contained in:
9
app/models/task.rb
Normal file
9
app/models/task.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class Task < ApplicationRecord
|
||||
belongs_to :creator, class_name: 'User'
|
||||
belongs_to :reporter, class_name: 'User', optional: true
|
||||
belongs_to :reportee, class_name: 'User', optional: true
|
||||
belongs_to :project
|
||||
enum priority: { low: 0, medium: 1, high: 2 }
|
||||
enum status: { open: 0, in_progress: 1, closed: 2 }
|
||||
enum type: { bug: 0, feature: 1, chore: 2 }
|
||||
end
|
||||
Reference in New Issue
Block a user