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