blob: e228cd57724e0b0a0d21a98a3f5fa646340317e7 (
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
# 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
|