blob: 0f943c8ce355a0658f8ac3747498fb05e012ded8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# == Schema Information
#
# Table name: publishing_delays
#
# id :bigint(8) not null, primary key
# status_id :bigint(8) not null
# after :datetime
# accounts_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
|