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.6 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.5 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.3 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.2 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.1 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.0 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.9 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.8 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.7 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.6 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.5 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.4 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.3 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.2 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.1 app/models/educode_sales/activity_teacher.rb
educode_sales-1.0.0 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.99 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.98 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.97 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.96 app/models/educode_sales/activity_teacher.rb