From 52b500e482180b20bb988c09c07c39a492512c31 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Fri, 31 Jul 2020 21:39:29 -0500 Subject: [Feature, Database] Add migrations and models for queued boosts, delayed publishing, and self-destructing posts --- app/models/concerns/account_associations.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/models/concerns/account_associations.rb') diff --git a/app/models/concerns/account_associations.rb b/app/models/concerns/account_associations.rb index 5a54f2208..14f64cb71 100644 --- a/app/models/concerns/account_associations.rb +++ b/app/models/concerns/account_associations.rb @@ -69,5 +69,14 @@ module AccountAssociations # Custom metadata has_one :metadata, class_name: 'AccountMetadata', inverse_of: :account, dependent: :destroy + + # Delayed posts + has_many :publishing_delays, inverse_of: :account, dependent: :destroy + + # Self-destructing posts + has_many :destructing_statuses, inverse_of: :account, dependent: :destroy + + # Queued boosts + has_many :queued_boosts, inverse_of: :account, dependent: :destroy end end -- cgit