Sha256: 601f232a568f5336a2c2ebc3c783e36a51424dce0d924364270cc504f66d8a31

Contents?: true

Size: 616 Bytes

Versions: 5

Compression:

Stored size: 616 Bytes

Contents

module Ecom
  module Model
    class Project < ApplicationRecord
      belongs_to :employer, class_name: 'Ecom::Model::Stakeholder'
      belongs_to :contractor, class_name: 'Ecom::Model::Stakeholder'
      belongs_to :consultant, class_name: 'Ecom::Model::Stakeholder'
      belongs_to :project_manager, class_name: 'Ecom::Model::Stakeholder'
      belongs_to :task_template
      belongs_to :currency
  
      validates :name, :location, :contract_number, :date_contract_signed, :commencement_date, :completion_date,
                :contract_amount, :advance_payment, :retention, presence: true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 app/models/ecom/model/project.rb
ecom_model-2.0.3 app/models/ecom/model/project.rb
ecom_model-2.0.2 app/models/ecom/model/project.rb
ecom_model-2.0.1 app/models/ecom/model/project.rb
ecom_model-2.0.0 app/models/ecom/model/project.rb