Change ActiveRecordEncryption initializer check to abort rather than raise

Also explicitly mention the error comes from Mastodon
This commit is contained in:
Claire 2024-05-02 17:02:52 +02:00
parent 616e2f2666
commit 1382f6c0a1
1 changed files with 2 additions and 2 deletions

View File

@ -6,9 +6,9 @@
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY
).each do |key|
ENV.fetch(key) do
raise <<~MESSAGE
abort <<~MESSAGE
The ActiveRecord encryption feature requires that these variables are set:
Mastodon now requires that these variables are set:
- ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY
- ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT