about summary refs log tree commit diff
path: root/app/models/destructing_status.rb
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-31 21:39:29 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:16 -0500
commit52b500e482180b20bb988c09c07c39a492512c31 (patch)
treef271a673bcc6c4a18a8ecaf77cec7f4cbadd0182 /app/models/destructing_status.rb
parentd21652f4f0a1c756402a11826ccd93cb6081be59 (diff)
[Feature, Database] Add migrations and models for queued boosts, delayed publishing, and self-destructing posts
Diffstat (limited to 'app/models/destructing_status.rb')
-rw-r--r--app/models/destructing_status.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/models/destructing_status.rb b/app/models/destructing_status.rb
new file mode 100644
index 000000000..70bfc28d2
--- /dev/null
+++ b/app/models/destructing_status.rb
@@ -0,0 +1,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