mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Add flying stats to the Flights tab; drop the DRS search link setting
Flights tab: - Summary cards for the past 30 days, this year, past 12 months and since the first flight (flight hours, flights, tach, fuel). - Flight hours by month (last 24 months) with the past-year monthly average, totals (flights, flight/tach time, average and longest flight, fuel, gal/hr, airports visited, most visited) and a by-year table. - Flight time is Hobbs time where recorded, otherwise tach time. Removed the per-aircraft DRS search link and its "Open in DRS" button: each AD's DRS link already comes from the Excel import. A guarded migration drops the column. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b75fd7cf62
commit
0c4803d717
15 files changed
+221
-23
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# The per-aircraft DRS search link turned out to be unnecessary: each AD's
|
||||
# DRS link comes from the Excel import.
|
||||
class RemoveDrsSearchUrlFromAircraft < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
remove_column :aircraft, :drs_search_url, :string if column_exists?(:aircraft, :drs_search_url)
|
||||
end
|
||||
end
|
||||
Generated
+1
-2
@@ -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_05_200000) do
|
||||
ActiveRecord::Schema[8.1].define(version: 2026_11_06_120000) do
|
||||
create_table "active_storage_attachments", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "record_type", null: false
|
||||
@@ -75,7 +75,6 @@ ActiveRecord::Schema[8.1].define(version: 2026_11_05_200000) do
|
||||
t.boolean "airworthiness_enforcement", default: false, null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "drs_search_url"
|
||||
end
|
||||
|
||||
create_table "aircraft_airworthiness_directives", id: false, force: :cascade do |t|
|
||||
|
||||
Reference in new issue
Block a user