mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +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,10 +0,0 @@
|
|||
module LogTable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
# one plase to define log tables
|
||||
log_table_name = "log_#{table_name.sub('_versions', '').tableize}"
|
||||
self.table_name = log_table_name
|
||||
self.sequence_name = log_table_name
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue