Sha256: 3b19b370dab7d9550318c09c68a8ea5387830d869c9a12d34c44ba15936ff0ff

Contents?: true

Size: 511 Bytes

Versions: 112

Compression:

Stored size: 511 Bytes

Contents

module EducodeSales
  class BusinessClazzChange < ApplicationRecord
    belongs_to :business
    validates :clazz_changed, uniqueness: {scope: :business_id, message: '已存在' }



    def self.clazz_changes_value
      {
        '1' => ['a-x', 'b-x', 'c-x'],
        '2' => ['b-a', 'c-a', 'd-a'],
        '3' => ['a-x'],
        '4' => ['a-x', 'b-x'],
        '5' => ['a-x', 'b-x', 'c-x'],
        '6' => ['b-a'],
        '7' => ['b-a', 'c-a'],
        '8' => ['b-a', 'c-a', 'd-a']
      }
    end
  end
end

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
educode_sales-0.9.72 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.71 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.70 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.69 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.68 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.67 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.66 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.65 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.64 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.63 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.62 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.61 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.60 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.59 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.58 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.57 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.56 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.55 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.54 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.53 app/models/educode_sales/business_clazz_change.rb