Sha256: 17f35b9588e827e3b235738ac4ea0a5b998ac182ee37b95f2001eb69ce99a166

Contents?: true

Size: 249 Bytes

Versions: 209

Compression:

Stored size: 249 Bytes

Contents

module EducodeSales
  class ActivityTeacher < ApplicationRecord
    belongs_to :activity, counter_cache: true
    belongs_to :teacher, counter_cache: true

    validates :teacher_id, uniqueness: {scope: :activity_id, message: '已存在'}
  end
end

Version data entries

209 entries across 209 versions & 1 rubygems

Version Path
educode_sales-1.10.74 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.73 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.72 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.71 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.70 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.59 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.58 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.49 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.48 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.46 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.41 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.37 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.36 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.35 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.34 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.33 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.31 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.30 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.29 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.28 app/models/educode_sales/activity_teacher.rb