about summary refs log tree commit diff
path: root/app/models/destructing_status.rb
blob: 79f17e67d32bd5bad928c1903a7949e3043d51bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# == 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
#  account_id      :bigint(8)        not null
#

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

  validates :status_id, uniqueness: true
end