Files
dry_beans/db/migrate/20240911231807_create_viajes.rb

12 lines
246 B
Ruby
Raw Normal View History

2024-09-11 20:39:53 -03:00
class CreateViajes < ActiveRecord::Migration[7.2]
def change
create_table :viajes do |t|
2024-09-11 23:02:25 -03:00
t.belongs_to :ruta
2024-09-11 20:56:54 -03:00
t.string :direccion_partida
t.string :direccion_llegada
2024-09-11 22:41:17 -03:00
t.integer :kms
2024-09-11 20:39:53 -03:00
t.timestamps
end
end
end