Make `User#groups` work correctly

The `has_many :group_memberships` in `User` tries to use `user_id` as the
foreign key, so we need to override it.