app/models/field_test/membership.rb in field_test-0.2.0 vs app/models/field_test/membership.rb in field_test-0.2.1
- old
+ new
@@ -1,8 +1,10 @@
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