Files
simple-aircraft-manager-rails/db/migrate/20261112020000_add_replacement_from_install_to_components.rb
rickyandClaude Opus 5.5 352a38c7fb 2026.11.1: offline flight logging fixed, inspections from logbook entries, life limits from installation, component inspections moved to inspection types
- Service worker keeps the Log Flight form when opened via Turbo, serves the offline page's script and icon, and treats 502/503/504 as offline; the offline page only links forms actually kept
- Serviced sub-components restart from the airframe time flown since the entry
- New logbook entries can complete inspections (recorded and linked to the entry)
- Components: replacement limit can count from installation (life limit)
- Component-level "Inspect every" / "Inspection critical" removed; a migration converts any unlinked settings into inspection types with a first record; component page lists its inspections

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 07:30:59 -05:00

9 lines
387 B
Ruby

# A life-limited part that's cleaned and reused (e.g. a Challenger oil filter):
# its "replace every" limit counts from when it was installed (total time in
# service), not from its last service.
class AddReplacementFromInstallToComponents < ActiveRecord::Migration[8.1]
def change
add_column :components, :replacement_from_install, :boolean, default: false, null: false
end
end