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-0.9.32 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.31 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.30 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.29 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.28 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.27 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.26 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.25 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.24 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.23 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.22 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.21 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.20 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.19 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.18 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.17 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.16 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.15 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.14 app/models/educode_sales/activity_teacher.rb
educode_sales-0.9.13 app/models/educode_sales/activity_teacher.rb