mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 15:50:36 -05:00
New-AD search covers every installed component
- Besides the aircraft and engine/propeller models (and families), each in-use component is searched as maker + model designator and as component type + designator (e.g. "Champion 4301", "Magneto 4301"), so appliance ADs (magnetos, ELTs, radios, transponders) are found - A match records the component; tracking it makes the AD apply to that component instead of the airframe (ad_alerts.component_id) - Page hint, guide and README updated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
afaa1ca191
commit
d2f5ce1e92
9 files changed
+91
-20
No files matched your search
Generated
+4
-1
@@ -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_08_050000) do
|
||||
ActiveRecord::Schema[8.1].define(version: 2026_11_09_010000) do
|
||||
create_table "active_storage_attachments", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "record_type", null: false
|
||||
@@ -54,9 +54,11 @@ ActiveRecord::Schema[8.1].define(version: 2026_11_08_050000) do
|
||||
t.integer "airworthiness_directive_id"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "component_id"
|
||||
t.index ["aircraft_id", "fr_document_number"], name: "index_ad_alerts_on_aircraft_id_and_fr_document_number", unique: true
|
||||
t.index ["aircraft_id"], name: "index_ad_alerts_on_aircraft_id"
|
||||
t.index ["airworthiness_directive_id"], name: "index_ad_alerts_on_airworthiness_directive_id"
|
||||
t.index ["component_id"], name: "index_ad_alerts_on_component_id"
|
||||
end
|
||||
|
||||
create_table "ad_compliances", force: :cascade do |t|
|
||||
@@ -823,6 +825,7 @@ ActiveRecord::Schema[8.1].define(version: 2026_11_08_050000) do
|
||||
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
||||
add_foreign_key "ad_alerts", "aircraft"
|
||||
add_foreign_key "ad_alerts", "airworthiness_directives", on_delete: :nullify
|
||||
add_foreign_key "ad_alerts", "components", on_delete: :nullify
|
||||
add_foreign_key "ad_compliances", "aircraft"
|
||||
add_foreign_key "ad_compliances", "airworthiness_directives"
|
||||
add_foreign_key "ad_compliances", "components"
|
||||
|
||||
Reference in new issue
Block a user