Sha256: 4531703225062dacf3d531acc8953a00475038c637a733a847b62ad24cd0a39c

Contents?: true

Size: 250 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.17.0 app/models/disco_app/concerns/plan_code.rb
disco_app-0.18.0 app/models/disco_app/concerns/plan_code.rb
disco_app-0.18.2 app/models/disco_app/concerns/plan_code.rb
disco_app-0.18.3 app/models/disco_app/concerns/plan_code.rb
disco_app-0.18.6 app/models/disco_app/concerns/plan_code.rb
disco_app-0.18.4 app/models/disco_app/concerns/plan_code.rb
disco_app-0.18.1 app/models/disco_app/concerns/plan_code.rb