debian-mirror-gitlab/app/models/experiment_user.rb
2020-10-24 23:57:45 +05:30

10 lines
213 B
Ruby

# 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