about summary refs log tree commit diff
path: root/app/models/publishing_delay.rb
blob: 7b4d4c21439b71e1e631eb62ee02317862b86a61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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