remove validation and add specs

This commit is contained in:
Bilal
2020-07-14 18:47:43 +02:00
parent bde18ab0f1
commit d12cec8487
3 changed files with 31 additions and 6 deletions

View File

@@ -5,6 +5,4 @@ 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 }
end