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-1.10.74 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.73 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.72 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.71 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.70 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.59 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.58 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.49 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.48 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.46 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.41 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.37 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.36 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.35 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.34 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.33 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.31 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.30 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.29 app/models/educode_sales/business_clazz_change.rb
educode_sales-1.10.28 app/models/educode_sales/business_clazz_change.rb