phase002 complete

This commit is contained in:
2026-09-15 20:28:07 -06:00
parent 9793cd08bc
commit a3a65c24ed
28 changed files with 656 additions and 13 deletions
@@ -0,0 +1,15 @@
class CreateMaintenanceEntries < ActiveRecord::Migration[8.1]
def change
create_table :maintenance_entries do |t|
t.references :vehicle, null: false, foreign_key: true
t.references :updated_by_user, null: false, foreign_key: { to_table: :users }
t.string :name, null: false
t.text :notes, null: false
t.integer :odometer, null: false
t.decimal :cost, precision: 10, scale: 2, null: false
t.date :date, null: false
t.timestamps
end
end
end