Sha256: 791f535b2b72b48df56d69c03e326d11093e6f12251656e4aa88babda764fd3a

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

module FieldTest
  class Membership < ActiveRecord::Base
    self.table_name = "field_test_memberships"

    has_many :events, class_name: "FieldTest::Event"

    validates :participant, presence: true
    validates :experiment, presence: true
    validates :variant, presence: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
field_test-0.2.4 app/models/field_test/membership.rb
field_test-0.2.3 app/models/field_test/membership.rb
field_test-0.2.2 app/models/field_test/membership.rb
field_test-0.2.1 app/models/field_test/membership.rb