Files
vms/db/migrate/20240820165836_create_vehicles.rb
David Böhm 132ea2c51d
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
Added vehicle scaffold
2024-08-20 19:50:29 +02:00

20 lines
420 B
Ruby

class CreateVehicles < ActiveRecord::Migration[7.2]
def change
create_table :vehicles do |t|
t.integer :vehicle_type
t.string :car_brand
t.string :model
t.integer :model_year
t.string :fuel_type
t.integer :power_ps
t.integer :power_kw
t.boolean :registered
t.string :license_plate
t.string :color
t.text :note
t.timestamps
end
end
end