diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-31 21:39:29 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:16 -0500 |
commit | 52b500e482180b20bb988c09c07c39a492512c31 (patch) | |
tree | f271a673bcc6c4a18a8ecaf77cec7f4cbadd0182 /app/models/concerns | |
parent | d21652f4f0a1c756402a11826ccd93cb6081be59 (diff) |
[Feature, Database] Add migrations and models for queued boosts, delayed publishing, and self-destructing posts
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/account_associations.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 |