method

validate_keys!

rails latest stable - Class: ActiveRecord::Encryption::Scheme

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

validate_keys!()
private

No documentation available.

# File activerecord/lib/active_record/encryption/scheme.rb, line 77
        def validate_keys!
          validate_credential :key_derivation_salt
          validate_credential :primary_key, "needs to be configured to use non-deterministic encryption" unless @deterministic
          validate_credential :deterministic_key, "needs to be configured to use deterministic encryption" if @deterministic
        end