# == Schema Information # # Table name: publishing_delays # # id :bigint(8) not null, primary key # status_id :bigint(8) not null # after :datetime # account_id :bigint(8) not null # class PublishingDelay < ApplicationRecord belongs_to :status, inverse_of: :publishing_delay belongs_to :account, inverse_of: :publishing_delays validates :status_id, uniqueness: true end