Sha256: 293dccaf0cc275fc251feb15ff4194c7454a139dd3975ead5f032c197a49174a

Contents?: true

Size: 640 Bytes

Versions: 17

Compression:

Stored size: 640 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_type
      belongs_to :currency
      belongs_to :company

      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

17 entries across 17 versions & 1 rubygems

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