Class: Legion::Data::Model::AuditRecord
- Inherits:
-
Object
- Object
- Legion::Data::Model::AuditRecord
- Defined in:
- lib/legion/data/models/audit_record.rb
Instance Method Summary collapse
- #before_destroy ⇒ Object
-
#before_update ⇒ Object
Enforce append-only semantics at the application layer.
- #parsed_metadata ⇒ Object
Instance Method Details
#before_destroy ⇒ Object
15 16 17 |
# File 'lib/legion/data/models/audit_record.rb', line 15 def before_destroy raise 'audit_records are immutable and cannot be deleted' end |
#before_update ⇒ Object
Enforce append-only semantics at the application layer. PostgreSQL enforces this at the DB layer via rules (migration 058); the application guard covers SQLite and MySQL.
11 12 13 |
# File 'lib/legion/data/models/audit_record.rb', line 11 def before_update raise 'audit_records are immutable and cannot be updated' end |