fix MR comment

This commit is contained in:
Bilal
2020-07-15 19:03:35 +02:00
parent d12cec8487
commit c17f41525d

View File

@@ -5,4 +5,6 @@ class TaskRequest < ApplicationRecord
enum status: [:pending, :completed, :cancelled]
scope :order_by_recent, -> { order(created_at: :desc) }
validates :time_allowed, numericality: { only_integer: true, greater_than_or_equal_to: 2 }, allow_blank: true
end