Add ActionVersion

This commit is contained in:
Artur Beljajev 2019-06-20 11:54:50 +03:00
parent f5ab7814e3
commit f4fc975440
4 changed files with 77 additions and 0 deletions

View file

@ -1,4 +1,6 @@
class Action < ActiveRecord::Base
has_paper_trail class_name: 'ActionVersion'
belongs_to :user
belongs_to :contact

View file

@ -0,0 +1,4 @@
class ActionVersion < PaperTrail::Version
self.table_name = :log_actions
self.sequence_name = :log_actions_id_seq
end