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