diff options
Diffstat (limited to 'app/models/publishing_delay.rb')
-rw-r--r-- | app/models/publishing_delay.rb | 14 |
1 files changed, 14 insertions, 0 deletions
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 |