diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-01 17:25:39 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:17 -0500 |
commit | 99ee21981249193e9125e1d7802282489fbdd457 (patch) | |
tree | 44b7dadac0f9b4986410d00d888a1fba00c159a8 /app | |
parent | 6e7c896d4c03e97aa873ac44e9f34a5dd90eb263 (diff) |
[Database] Add missing accounts reference to destructing statuses table
Diffstat (limited to 'app')
-rw-r--r-- | app/models/destructing_status.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/destructing_status.rb b/app/models/destructing_status.rb index 70bfc28d2..79f17e67d 100644 --- a/app/models/destructing_status.rb +++ b/app/models/destructing_status.rb @@ -6,10 +6,12 @@ # 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 |