Are you sure the error is on the email? I just tried this on the rails console and it worked fine
User.create!(email: "invalid#{SecureRandom.hex}@no-email.invalid", username: "random")
Are you sure the error is on the email? I just tried this on the rails console and it worked fine
User.create!(email: "invalid#{SecureRandom.hex}@no-email.invalid", username: "random")