fix AR encryption
This commit is contained in:
@@ -79,6 +79,8 @@ Rails.application.configure do
|
||||
key_derivation_salt: 'dev key derivation salt'
|
||||
}
|
||||
|
||||
ActiveRecord::Encryption.configure(**config.active_record.encryption)
|
||||
|
||||
# Raises error for missing translations.
|
||||
# config.i18n.raise_on_missing_translations = true
|
||||
|
||||
|
||||
@@ -115,6 +115,8 @@ Rails.application.configure do
|
||||
key_derivation_salt: Digest::SHA256.hexdigest(encryption_secret)
|
||||
}
|
||||
|
||||
ActiveRecord::Encryption.configure(**config.active_record.encryption)
|
||||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
|
||||
@@ -67,6 +67,8 @@ Rails.application.configure do
|
||||
key_derivation_salt: 'test key derivation salt'
|
||||
}
|
||||
|
||||
ActiveRecord::Encryption.configure(**config.active_record.encryption)
|
||||
|
||||
config.middleware.use(Class.new do
|
||||
def initialize(app)
|
||||
@app = app
|
||||
|
||||
Reference in New Issue
Block a user