git-gurus-itu-devops / itu-minitwit

0 stars 0 forks source link

Use ActiveRecord validations for user creation #43

Closed duckth closed 6 months ago

duckth commented 6 months ago

This PR changes the register endpoints to use the native ActiveRecord validation methods instead of the "validate_create_user" endpoint. The messages have been changed in the tests to reflect the messages ActiveRecord generates. Shouldn't affect the simulator as it doesn't actually care about the message.