mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
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:
parent
7f308d4123
commit
c4ffdbd650
6 changed files with 300 additions and 202 deletions
|
@ -1,7 +1,7 @@
|
|||
# Used in Registrant portal to collect registrant verifications
|
||||
# Registrant postgres user can access this table directly.
|
||||
class RegistrantVerification < ApplicationRecord
|
||||
has_paper_trail
|
||||
has_paper_trail class_name: 'RegistrantVerificationVersion'
|
||||
|
||||
# actions
|
||||
CONFIRMED = 'confirmed'
|
||||
|
|
7
app/models/version/registrant_verification_version.rb
Normal file
7
app/models/version/registrant_verification_version.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue