Sha256: b166d771a96c73f79b6a33cef2e3cfda1fa1ad2f9bbb6d188898f80b7cb05313
Contents?: true
Size: 465 Bytes
Versions: 7
Compression:
Stored size: 465 Bytes
Contents
module FieldTest class Membership < ActiveRecord::Base self.table_name = "field_test_memberships" has_many :events, class_name: "FieldTest::Event", foreign_key: "field_test_membership_id" validates :participant, presence: true, if: -> { FieldTest.legacy_participants } validates :participant_id, presence: true, if: -> { !FieldTest.legacy_participants } validates :experiment, presence: true validates :variant, presence: true end end
Version data entries
7 entries across 7 versions & 1 rubygems