class Event < ActiveRecord::Base
  has_many :games
  has_many :event_users
  has_many :users, through: :event_users
  belongs_to :creator, class_name: "User", foreign_key: :user_id
end
class Event < ActiveRecord::Base
  has_many :games
  has_many :event_users
  has_many :users, through: :event_users
  belongs_to :creator, class_name: "User", foreign_key: :creator_id

end

Fix foreign_key association in Event model
Fix foreign_key association in Event model
