Sha256: 54e0ba71b2bc2b0a7b95eb519bd4822feb5f8678d6ff064294bce31fff089b29

Contents?: true

Size: 611 Bytes

Versions: 57

Compression:

Stored size: 611 Bytes

Contents

module Ecom
  module Core
    class Project < ApplicationRecord
      belongs_to :employer, class_name: 'Ecom::Core::Stakeholder'
      belongs_to :contractor, class_name: 'Ecom::Core::Stakeholder'
      belongs_to :consultant, class_name: 'Ecom::Core::Stakeholder'
      belongs_to :project_manager, class_name: 'Ecom::Core::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

57 entries across 57 versions & 1 rubygems

Version Path
ecom_core-1.2.1 app/models/ecom/core/project.rb
ecom_core-1.2.0 app/models/ecom/core/project.rb
ecom_core-1.1.28 app/models/ecom/core/project.rb
ecom_core-1.1.27 app/models/ecom/core/project.rb
ecom_core-1.1.26 app/models/ecom/core/project.rb
ecom_core-1.1.25 app/models/ecom/core/project.rb
ecom_core-1.1.24 app/models/ecom/core/project.rb
ecom_core-1.1.23 app/models/ecom/core/project.rb
ecom_core-1.1.22 app/models/ecom/core/project.rb
ecom_core-1.1.21 app/models/ecom/core/project.rb
ecom_core-1.1.20 app/models/ecom/core/project.rb
ecom_core-1.1.19 app/models/ecom/core/project.rb
ecom_core-1.1.18 app/models/ecom/core/project.rb
ecom_core-1.1.17 app/models/ecom/core/project.rb
ecom_core-1.1.16 app/models/ecom/core/project.rb
ecom_core-1.1.15 app/models/ecom/core/project.rb
ecom_core-1.1.14 app/models/ecom/core/project.rb
ecom_core-1.1.13 app/models/ecom/core/project.rb
ecom_core-1.1.12 app/models/ecom/core/project.rb
ecom_core-1.1.11 app/models/ecom/core/project.rb