about summary refs log tree commit diff
path: root/app/models/destructing_status.rb
blob: 70bfc28d20cff5574a0d5aac22afa31bc8d35631 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# == Schema Information
#
# Table name: destructing_statuses
#
#  id              :bigint(8)        not null, primary key
#  status_id       :bigint(8)        not null
#  after           :datetime         not null
#  defederate_only :boolean          default(FALSE), not null
#

class DestructingStatus < ApplicationRecord
  belongs_to :status, inverse_of: :destruct

  validates :status_id, uniqueness: true
end