Record keeping: 43.9/43.11 sign-off fields, AD method, status report

- Logbook entries record the signer's kind of certificate and number and
  an inspection's result; maintenance and inspection entries list what
  43.9 / 43.11 needs that's missing (flagged, not enforced). Transcription
  reads the certificate details too
- AD compliance records the method (inspection, terminating action, AMOC,
  not applicable) and the AD revision complied with, filled in from the AD
  when blank; the method sets the permanent / N/A flags
- Maintenance status report (91.417(a)(2)): total times, life-limited
  parts, time since overhaul, inspection and AD status, major alterations,
  open discrepancies; print or save as PDF; on maintenance share links too
- Archives carry the new fields

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-07 10:14:21 -05:00
1 parent a4b72cf2c1
commit a4ec7a691e
30 files changed
+515 -26

No files matched your search

@@ -0,0 +1,24 @@
# What 14 CFR 43.9 / 43.11 and 91.417(a)(2)(v) want in the records:
# the signer's certificate (kind and number), an inspection's outcome, and
# each AD's method of compliance and the revision complied with.
class AddRecordKeepingFields < ActiveRecord::Migration[8.1]
def up
add_column :logbook_entries, :signoff_certificate_type, :string
add_column :logbook_entries, :signoff_certificate_number, :string
add_column :logbook_entries, :inspection_result, :string
add_column :ad_compliances, :compliance_method, :string
add_column :ad_compliances, :ad_revision, :string
execute "UPDATE ad_compliances SET compliance_method = 'not_applicable' WHERE not_applicable = 1"
execute "UPDATE ad_compliances SET compliance_method = 'terminating' WHERE compliance_method IS NULL AND permanent = 1"
execute "UPDATE ad_compliances SET compliance_method = 'inspection' WHERE compliance_method IS NULL"
end
def down
remove_column :logbook_entries, :signoff_certificate_type
remove_column :logbook_entries, :signoff_certificate_number
remove_column :logbook_entries, :inspection_result
remove_column :ad_compliances, :compliance_method
remove_column :ad_compliances, :ad_revision
end
end
Generated
+6 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2026_11_07_190000) do
ActiveRecord::Schema[8.1].define(version: 2026_11_07_200000) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -53,6 +53,8 @@ ActiveRecord::Schema[8.1].define(version: 2026_11_07_190000) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "not_applicable", default: false, null: false
t.string "compliance_method"
t.string "ad_revision"
t.index ["aircraft_id"], name: "index_ad_compliances_on_aircraft_id"
t.index ["airworthiness_directive_id"], name: "index_ad_compliances_on_airworthiness_directive_id"
t.index ["component_id"], name: "index_ad_compliances_on_component_id"
@@ -416,6 +418,9 @@ ActiveRecord::Schema[8.1].define(version: 2026_11_07_190000) do
t.integer "page_number"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "signoff_certificate_type"
t.string "signoff_certificate_number"
t.string "inspection_result"
t.index ["aircraft_id"], name: "index_logbook_entries_on_aircraft_id"
t.index ["document_id"], name: "index_logbook_entries_on_document_id"
end