题库的删除

dev_tj
cxt 5 years ago
parent 75f892f1bd
commit 2309591481

@ -23,7 +23,6 @@ class Hack < ApplicationRecord
belongs_to :sub_discipline belongs_to :sub_discipline
has_one :item_bank, as: :container, dependent: :destroy has_one :item_bank, as: :container, dependent: :destroy
has_one :examination_bank, as: :container, dependent: :destroy
scope :published, -> { where(status: 1) } scope :published, -> { where(status: 1) }
scope :unpublish, -> { where(status: 0) } scope :unpublish, -> { where(status: 0) }

Loading…
Cancel
Save