class Event < ActiveRecord::Base
  has_many :participations, class_name: EventParticipation.name, dependent: :destroy
  has_many :users, through: :participations
end

class Event < ActiveRecord::Base
  has_many :participations, class_name: EventParticipation.name, dependent: :destroy
  has_many :users, through: :participations

  validates :name, presence: true
end

Add validate presence to Event model
Add validate presence to Event model
