Files
dry_beans/db/migrate/20240911231807_create_viajes.rb
2024-09-11 20:56:54 -03:00

14 lines
295 B
Ruby

class CreateViajes < ActiveRecord::Migration[7.2]
def change
create_table :viajes do |t|
t.belongs_to :ruta
t.string :direccion_partida
t.string :direccion_llegada
t.int :kms
t.has_many :entregas
t.has_many :retiros
t.timestamps
end
end
end