Sha256: fa0bcdd802737df0d41ba464ea546d65fe6db41e297ac97c409fc1808a6d2489

Contents?: true

Size: 302 Bytes

Versions: 20

Compression:

Stored size: 302 Bytes

Contents

module Ecom
  module Core
    class TaskResource < ApplicationRecord
      validates :task_id, :task, :resource_type_id, :resource_type, presence: true

      belongs_to :task
      belongs_to :resource_type

      validates :amount, presence: true, numericality: { greater_than: 0 }
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ecom_core-1.3.14 app/models/ecom/core/task_resource.rb
ecom_core-1.3.13 app/models/ecom/core/task_resource.rb
ecom_core-1.3.12 app/models/ecom/core/task_resource.rb
ecom_core-1.3.11 app/models/ecom/core/task_resource.rb
ecom_core-1.3.10 app/models/ecom/core/task_resource.rb
ecom_core-1.3.9 app/models/ecom/core/task_resource.rb
ecom_core-1.3.8 app/models/ecom/core/task_resource.rb
ecom_core-1.3.7 app/models/ecom/core/task_resource.rb
ecom_core-1.3.6 app/models/ecom/core/task_resource.rb
ecom_core-1.3.5 app/models/ecom/core/task_resource.rb
ecom_core-1.3.4 app/models/ecom/core/task_resource.rb
ecom_core-1.3.3 app/models/ecom/core/task_resource.rb
ecom_core-1.3.2 app/models/ecom/core/task_resource.rb
ecom_core-1.3.1 app/models/ecom/core/task_resource.rb
ecom_core-1.3.0 app/models/ecom/core/task_resource.rb
ecom_core-1.2.36 app/models/ecom/core/task_resource.rb
ecom_core-1.2.35 app/models/ecom/core/task_resource.rb
ecom_core-1.2.34 app/models/ecom/core/task_resource.rb
ecom_core-1.2.33 app/models/ecom/core/task_resource.rb
ecom_core-1.2.32 app/models/ecom/core/task_resource.rb