summaryrefslogtreecommitdiff
path: root/app/models/experiment_user.rb
blob: 1571b0c3439c6830e52c1e91d32d08ce5a21abcc (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

class ExperimentUser < ApplicationRecord
  belongs_to :experiment
  belongs_to :user

  enum group_type: { control: 0, experimental: 1 }

  validates :group_type, presence: true
end