Sha256: 95d84a542b8aa198fe66398ecb8ad976cc3161e5f47e9d88559d6aa9301c3546

Contents?: true

Size: 718 Bytes

Versions: 18

Compression:

Stored size: 718 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

      has_many :project_crews
      has_many :crews, through: :project_crews

      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

18 entries across 18 versions & 1 rubygems

Version Path
ecom_core-1.2.34 app/models/ecom/core/project.rb
ecom_core-1.2.33 app/models/ecom/core/project.rb
ecom_core-1.2.32 app/models/ecom/core/project.rb
ecom_core-1.2.31 app/models/ecom/core/project.rb
ecom_core-1.2.30 app/models/ecom/core/project.rb
ecom_core-1.2.29 app/models/ecom/core/project.rb
ecom_core-1.2.28 app/models/ecom/core/project.rb
ecom_core-1.2.27 app/models/ecom/core/project.rb
ecom_core-1.2.26 app/models/ecom/core/project.rb
ecom_core-1.2.25 app/models/ecom/core/project.rb
ecom_core-1.2.24 app/models/ecom/core/project.rb
ecom_core-1.2.23 app/models/ecom/core/project.rb
ecom_core-1.2.22 app/models/ecom/core/project.rb
ecom_core-1.2.21 app/models/ecom/core/project.rb
ecom_core-1.2.20 app/models/ecom/core/project.rb
ecom_core-1.2.19 app/models/ecom/core/project.rb
ecom_core-1.2.18 app/models/ecom/core/project.rb
ecom_core-1.2.17 app/models/ecom/core/project.rb