10 lines
365 B
Ruby
10 lines
365 B
Ruby
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
|