18 lines
346 B
Ruby
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
|