about summary refs log tree commit diff
path: root/app/models/queued_boost.rb
blob: 6eca3725fd2e79a27fe5d494502f4b3ddef99004 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# == Schema Information
#
# Table name: queued_boosts
#
#  id         :bigint(8)        not null, primary key
#  account_id :bigint(8)        not null
#  status_id  :bigint(8)        not null
#

class QueuedBoost < ApplicationRecord
  belongs_to :account, inverse_of: :queued_boosts
  belongs_to :status, inverse_of: :queued_boosts

  validates :account_id, uniqueness: { scope: :status_id }
end