69 lines
2.2 KiB
Ruby
69 lines
2.2 KiB
Ruby
# This file is auto-generated from the current state of the database. Instead
|
|
# of editing this file, please use the migrations feature of Active Record to
|
|
# incrementally modify your database, and then regenerate this schema definition.
|
|
#
|
|
# Note that this schema.rb definition is the authoritative source for your
|
|
# database schema. If you need to create the application database on another
|
|
# system, you should be using db:schema:load, not running all the migrations
|
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
#
|
|
# It's strongly recommended that you check this file into your version control system.
|
|
|
|
ActiveRecord::Schema.define(version: 2022_01_14_003844) do
|
|
|
|
create_table "aircrafts", force: :cascade do |t|
|
|
t.string "reg"
|
|
t.string "serial"
|
|
t.float "tach"
|
|
t.float "hobbs"
|
|
t.date "purchase_date"
|
|
t.float "purchase_tach"
|
|
t.float "purchase_hobbs"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "engines", force: :cascade do |t|
|
|
t.integer "aircraft_id"
|
|
t.date "oil_date"
|
|
t.float "oil_tach"
|
|
t.date "major_date"
|
|
t.float "major_tach"
|
|
t.date "top_date"
|
|
t.float "top_tach"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["aircraft_id"], name: "index_engines_on_aircraft_id"
|
|
end
|
|
|
|
create_table "flights", force: :cascade do |t|
|
|
t.integer "aircraft_id"
|
|
t.date "date"
|
|
t.string "from"
|
|
t.string "to"
|
|
t.float "tach"
|
|
t.float "hobbs"
|
|
t.boolean "oil"
|
|
t.boolean "fuel"
|
|
t.float "time"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["aircraft_id"], name: "index_flights_on_aircraft_id"
|
|
end
|
|
|
|
create_table "inspections", force: :cascade do |t|
|
|
t.integer "aircraft_id"
|
|
t.date "annual_date"
|
|
t.float "annual_tach"
|
|
t.float "annual_hobs"
|
|
t.date "pitot_static"
|
|
t.date "vor"
|
|
t.date "elt"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["aircraft_id"], name: "index_inspections_on_aircraft_id"
|
|
end
|
|
|
|
end
|