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.34 app/models/ecom/core/project_crew.rb
ecom_core-1.2.33 app/models/ecom/core/project_crew.rb
ecom_core-1.2.32 app/models/ecom/core/project_crew.rb
ecom_core-1.2.31 app/models/ecom/core/project_crew.rb
ecom_core-1.2.30 app/models/ecom/core/project_crew.rb
ecom_core-1.2.29 app/models/ecom/core/project_crew.rb
ecom_core-1.2.28 app/models/ecom/core/project_crew.rb
ecom_core-1.2.27 app/models/ecom/core/project_crew.rb
ecom_core-1.2.26 app/models/ecom/core/project_crew.rb
ecom_core-1.2.25 app/models/ecom/core/project_crew.rb
ecom_core-1.2.24 app/models/ecom/core/project_crew.rb
ecom_core-1.2.23 app/models/ecom/core/project_crew.rb
ecom_core-1.2.22 app/models/ecom/core/project_crew.rb
ecom_core-1.2.21 app/models/ecom/core/project_crew.rb
ecom_core-1.2.20 app/models/ecom/core/project_crew.rb
ecom_core-1.2.19 app/models/ecom/core/project_crew.rb
ecom_core-1.2.18 app/models/ecom/core/project_crew.rb
ecom_core-1.2.17 app/models/ecom/core/project_crew.rb
ecom_core-1.2.16 app/models/ecom/core/project_crew.rb
ecom_core-1.2.15 app/models/ecom/core/project_crew.rb