mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
12 lines
252 B
Ruby
12 lines
252 B
Ruby
class DomainVersion < PaperTrail::Version
|
|
include UserEvents
|
|
|
|
scope :deleted, -> { where(event: 'destroy') }
|
|
|
|
self.table_name = :domain_versions
|
|
self.sequence_name = :domain_version_id_seq
|
|
|
|
def load_snapshot
|
|
YAML.load(snapshot)
|
|
end
|
|
end
|