class Member < ActiveRecord::Base
  has_many :events
  has_many :organizations
  has_one :user
end

class Member < ActiveRecord::Base
  has_many :events
  has_many :organizations
  has_one :user

  validates :name, :email, presence: true
  validates :email, uniqueness: true
end

Validate presence of name, email and uniqueness of email
Validate presence of name, email and uniqueness of email
