Skip to content

Commit 444f5cf

Browse files
Merge pull request #35 from basecamp/fresh-app-error
Fix: error with SQLite in a fresh Rails app
2 parents f1b5f45 + b66cf10 commit 444f5cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ By default, console1984 is only enabled in `production`. You can configure the t
3535
config.console1984.protected_environments = %i[ production staging ]
3636
```
3737

38+
Finally, you need to [configure Active Record Encryption](https://edgeguides.rubyonrails.org/active_record_encryption.html#setup) in your
39+
project. This is because the library stores the tracked console commands encrypted.
40+
3841
## How it works
3942

4043
### Session activity logging

lib/console1984/shield.rb

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def extend_active_record
6464
if Object.const_defined?(class_string)
6565
klass = class_string.constantize
6666
klass.prepend(Console1984::Ext::ActiveRecord::ProtectedAuditableTables)
67-
klass.include(Console1984::Freezeable)
6867
end
6968
end
7069
end

0 commit comments

Comments
 (0)