mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Logging added for most models
This commit is contained in:
parent
09a816d5a8
commit
c3675c1b2a
46 changed files with 285 additions and 28 deletions
|
@ -1,8 +1,8 @@
|
|||
class ContactVersion < PaperTrail::Version
|
||||
include LogTable
|
||||
include UserEvents
|
||||
# self.table_name = :post_versions
|
||||
# self.sequence_name = :post_version_id_seq
|
||||
self.table_name = :log_contacts
|
||||
self.sequence_name = :log_contacts_id_seq
|
||||
|
||||
scope :deleted, -> { where(event: 'destroy') }
|
||||
# include UserEvents
|
||||
|
||||
# scope :deleted, -> { where(event: 'destroy') }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue