Sha256: c1502ae92326658361943b79778bdd3a276ee6fd82d70fd392233e387c8e0b80

Contents?: true

Size: 344 Bytes

Versions: 28

Compression:

Stored size: 344 Bytes

Contents

module Ecom
  module Core
    class ProjectCrew < ApplicationRecord
      ACTIVE = 'Active'.freeze
      INACTIVE = 'Inactive'.freeze
      STATUSES = [ACTIVE, INACTIVE].freeze

      belongs_to :project
      belongs_to :crew

      validates :start_date, :status, presence: true
      validates :status, inclusion: STATUSES
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ecom_core-1.2.14 app/models/ecom/core/project_crew.rb
ecom_core-1.2.13 app/models/ecom/core/project_crew.rb
ecom_core-1.2.12 app/models/ecom/core/project_crew.rb
ecom_core-1.2.11 app/models/ecom/core/project_crew.rb
ecom_core-1.2.10 app/models/ecom/core/project_crew.rb
ecom_core-1.2.9 app/models/ecom/core/project_crew.rb
ecom_core-1.2.7 app/models/ecom/core/project_crew.rb
ecom_core-1.2.6 app/models/ecom/core/project_crew.rb