Add & Display Flights
This commit is contained in:
15
db/migrate/20220114003600_create_engines.rb
Normal file
15
db/migrate/20220114003600_create_engines.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateEngines < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :engines do |t|
|
||||
t.references :aircraft, foreign_key: true
|
||||
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.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user