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.26 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.25 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.24 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.23 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.22 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.21 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.20 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.19 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.18 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.17 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.16 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.15 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.14 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.13 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.12 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.11 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.10 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.9 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.8 app/models/educode_sales/activity_teacher.rb
educode_sales-1.10.7 app/models/educode_sales/activity_teacher.rb