Class: Twenty::Task

Inherits:
Model
  • Object
show all
Defined in:
lib/twenty-backend/model/task.rb

Constant Summary collapse

STATUS =
{backlog: 0, ready: 1, in_progress: 2, complete: 3}

Instance Method Summary collapse

Instance Method Details

#projectObject

Associations



17
# File 'lib/twenty-backend/model/task.rb', line 17

belongs_to :project, class_name: "Twenty::Project"

#titleObject

Validations



11
# File 'lib/twenty-backend/model/task.rb', line 11

validates :title, presence: true