summaryrefslogtreecommitdiff
path: root/app/models/runner_project.rb
blob: 6907677a0041fbf46cde1e25e23f2c664b07c055 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# == Schema Information
#
# Table name: runner_projects
#
#  id         :integer          not null, primary key
#  runner_id  :integer          not null
#  project_id :integer          not null
#  created_at :datetime
#  updated_at :datetime
#

class RunnerProject < ActiveRecord::Base
  belongs_to :runner
  belongs_to :project

  validates_uniqueness_of :runner_id, scope: :project_id
end