Add & Display Flights
This commit is contained in:
17
db/migrate/20220114003844_create_flights.rb
Normal file
17
db/migrate/20220114003844_create_flights.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user