Sha256: a85a171ec33cf6e4200e527777daa7d9c244eccb7ae758edc89835e6a0d07545

Contents?: true

Size: 251 Bytes

Versions: 11

Compression:

Stored size: 251 Bytes

Contents

module DiscoApp::Concerns::PlanCode
  extend ActiveSupport::Concern

  included do

    belongs_to :plan

    enum status: {
      available: 0,
      unavailable: 1
    }

    validates_presence_of :code
    validates_presence_of :amount

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release app/models/disco_app/concerns/plan_code.rb
disco_app-0.13.8 app/models/disco_app/concerns/plan_code.rb
disco_app-0.14.1 app/models/disco_app/concerns/plan_code.rb
disco_app-0.14.2 app/models/disco_app/concerns/plan_code.rb
disco_app-0.15.0 app/models/disco_app/concerns/plan_code.rb
disco_app-0.16.0 app/models/disco_app/concerns/plan_code.rb
disco_app-0.14.4 app/models/disco_app/concerns/plan_code.rb
disco_app-0.14.3 app/models/disco_app/concerns/plan_code.rb
disco_app-0.16.1 app/models/disco_app/concerns/plan_code.rb
disco_app-0.15.2 app/models/disco_app/concerns/plan_code.rb
disco_app-0.14.0 app/models/disco_app/concerns/plan_code.rb