Files
flights/db/migrate/20220114003844_create_flights.rb
2022-01-15 16:05:31 -05:00

18 lines
346 B
Ruby

class CreateFlights < ActiveRecord::Migration[5.2]
def change
create_table :flights do |t|
t.references :aircraft, foreign_key: true
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.timestamps
end
end
end