|
|
@ -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) }
|
|
|
|