qi6_app/db/migrate/20180627225413_create_p_truck_spaces.rb
2019-05-17 12:30:45 +02:00

14 lines
320 B
Ruby

class CreatePTruckSpaces < ActiveRecord::Migration[6.0]
def change
create_table :p_truck_spaces do |t|
t.string :name
t.decimal :volume
t.references :p_truck, index: true, foreign_key: true
t.integer :default_p_tank_id
t.string :code
t.timestamps null: false
end
end
end