Files
simple-aircraft-manager-rails/db/migrate/20261107230000_create_user_certificates.rb
T
rickyandClaude Opus 5.5 aa262065b2 Certificates on user profiles, with "Sign as"
- Users add their FAA certificates (kind, number, optional expiry) on
  their profile; admins see them on the Users list
- "Sign as" on new/edited logbook entries and the squawk Resolve page
  fills the signer's name, kind of certificate and number (expired
  certificates aren't offered); deferrals default to mechanic for users
  with a mechanic certificate
- Weekly reminder lists certificates expiring within 60 days (or lapsed
  in the last 30), even when nothing else is due
- Preventive maintenance templates keep a certificate already chosen

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

12 lines
305 B
Ruby

class CreateUserCertificates < ActiveRecord::Migration[8.1]
def change
create_table :user_certificates do |t|
t.references :user, null: false, foreign_key: true
t.string :kind, null: false
t.string :number, null: false
t.date :expires_on
t.timestamps
end
end
end