mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
AD baseline: record DRS imports and the models they covered; weekly search starts from the last import; reminders and audit check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ba0455b149
commit
8bea2abf75
13 files changed
+169
-4
No files matched your search
@@ -0,0 +1,16 @@
|
||||
class CreateDrsImports < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
# Each FAA DRS import: when, by whom, and which of the aircraft's models
|
||||
# the file covered (the baseline the weekly new-AD search builds on).
|
||||
create_table :drs_imports do |t|
|
||||
t.references :aircraft, null: false, foreign_key: { on_delete: :cascade }
|
||||
t.references :user, foreign_key: { on_delete: :nullify }
|
||||
t.string :filename
|
||||
t.json :models_covered
|
||||
t.integer :ad_count, null: false, default: 0
|
||||
t.integer :tracked, null: false, default: 0
|
||||
t.integer :not_applicable, null: false, default: 0
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user