Added vehicle scaffold
This commit is contained in:
19
db/migrate/20240820165836_create_vehicles.rb
Normal file
19
db/migrate/20240820165836_create_vehicles.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user