# Pastebin dxjiQNEu class TokenMapper # ... def process_associations(op) op.belongs_to(User, :user, :user_id, inverse_of: :email_verification_token) end # ... end