```ruby
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```

Fix foreign_key association in Event model
user
```ruby
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
```
assistant