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.95 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.94 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.93 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.92 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.91 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.90 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.89 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.86 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.84 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.83 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.82 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.81 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.80 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.79 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.78 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.77 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.76 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.75 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.74 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.73 app/models/educode_sales/business_clazz_change.rb