16 lines
328 B
Ruby
16 lines
328 B
Ruby
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
|