FIX schema

This commit is contained in:
jasder 2021-02-09 11:49:47 +08:00
parent 9f4c2bd673
commit 50d81b2490
3 changed files with 70 additions and 78 deletions

View File

@ -11,11 +11,6 @@
# sync_subject :boolean default("0")
# sync_shixun :boolean default("0")
#
# Indexes
#
# index_laboratories_on_identifier (identifier) UNIQUE
# index_laboratories_on_school_id (school_id)
#
class Laboratory < ApplicationRecord
belongs_to :school, optional: true

View File

@ -6,10 +6,6 @@
# laboratory_id :integer
# config :text(65535)
#
# Indexes
#
# index_laboratory_settings_on_laboratory_id (laboratory_id)
#
class LaboratorySetting < ApplicationRecord
belongs_to :laboratory

View File

@ -69,6 +69,7 @@
#
class Project < ApplicationRecord
include Matchable
include Publicable