|
|
|
@ -9,10 +9,10 @@ class Laboratory < ApplicationRecord
|
|
|
|
|
has_many :portal_images, dependent: :destroy
|
|
|
|
|
|
|
|
|
|
has_many :laboratory_shixuns, dependent: :destroy
|
|
|
|
|
has_many :shixuns, through: :laboratory_shixuns, source: :shixun
|
|
|
|
|
# has_many :shixuns, through: :laboratory_shixuns, source: :shixun
|
|
|
|
|
|
|
|
|
|
has_many :laboratory_subjects, dependent: :destroy
|
|
|
|
|
has_many :subjects, through: :laboratory_subjects, source: :subject
|
|
|
|
|
# has_many :subjects, through: :laboratory_subjects, source: :subject
|
|
|
|
|
|
|
|
|
|
has_many :courses, dependent: :destroy
|
|
|
|
|
has_many :competitions, dependent: :destroy
|
|
|
|
|