Add registrant verification versions table according to existing logic

Creates a log_registrant_verifications table and version class as per https://github.com/internetee/registry/issues/1425#issuecomment-567117002
This commit is contained in:
Alex Sherman 2019-12-27 16:59:25 +05:00
parent 7f308d4123
commit c4ffdbd650
6 changed files with 300 additions and 202 deletions

View file

@ -0,0 +1,7 @@
class RegistrantVerificationVersion < PaperTrail::Version
include VersionSession
self.table_name = :log_registrant_verifications
self.sequence_name = :log_registrant_verifications_id_seq
scope :deleted, -> { where(event: 'destroy') }
end