Restore versions DB table and add learning tests

This commit is contained in:
Artur Beljajev 2019-03-01 19:53:37 +02:00
parent 5c8e507b93
commit 647bf4c397
5 changed files with 84 additions and 8 deletions

View file

@ -1,10 +1,3 @@
# the following line is required for PaperTrail >= 4.0.0 with Rails
PaperTrail::Rails::Engine.eager_load!
PaperTrail::Version.module_eval do
self.abstract_class = true
end
# Store console and rake changes in versions
if defined?(::Rails::Console)
PaperTrail.whodunnit = "console-#{`whoami`.strip}"