mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
- Admin → Recordkeeping Procedures: generated procedures document (2.2.11 / 3.2.8) from the system setup plus owner-entered details; adopted as numbered, immutable revisions; included in the records package - Admin → Records Audits: periodic QC checklist (3.2.8.5) combining app checks with a restore test, sampled entries vs. source documents and a user review; next due date on About and in admins' weekly reminder - User instructions at /help/records, linked from the logbook and signing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
556 B
Ruby
12 lines
556 B
Ruby
# The facts the procedures document needs that the app can't know (who is
|
|
# responsible, where it's hosted, the off-site backup, how often to audit).
|
|
# One row for the installation.
|
|
class RecordkeepingPolicy < ApplicationRecord
|
|
validates :audit_interval_months, numericality: { only_integer: true, in: 1..24 }
|
|
validates :audit_sample_size, numericality: { only_integer: true, in: 1..50 }
|
|
|
|
def self.current = first || create!
|
|
|
|
def complete? = [ operator_name, responsible_name, hosting_description, offsite_backup_description ].all?(&:present?)
|
|
end
|