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/publishing_delay.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/models/publishing_delay.rb (limited to 'app/models/publishing_delay.rb') diff --git a/app/models/publishing_delay.rb b/app/models/publishing_delay.rb new file mode 100644 index 000000000..7b4d4c214 --- /dev/null +++ b/app/models/publishing_delay.rb @@ -0,0 +1,14 @@ +# == Schema Information +# +# Table name: publishing_delays +# +# id :bigint(8) not null, primary key +# status_id :bigint(8) not null +# after :datetime +# + +class PublishingDelay < ApplicationRecord + belongs_to :status, inverse_of: :destruct + + validates :status_id, uniqueness: true +end -- cgit