save(validate: false). Even though that would prevent breaking existing functionality, I'm not sure if that (the
validate: false) is supported by all the ORMs Devise supports
if defined?(Mongoid) Mongoid::Document.send(:include, GlobalID::Identification) Mongoid::Relations::Proxy.send(:include, GlobalID::Identification) end
# more noise is better in the ID, but we prefer to avoid # wrapping the sequences so that Model.last on a single # machine returns the latest created document.