Closed Ichaelus closed 7 years ago
ActiveType::Object
is not backed by a database record, so it can't validate uniqueness.
It looks like you want to define a form model. If you inherit from ActiveType::Record[User]
(which should have an email
attribute, so you should omit attribute :email
in the form model), everything should be fine. :)
The following class raises a NotImplementedError:
The same error occurs when setting uniqueness to
{case_sensitive: false}
.Best, Michael