12 lines
246 B
Ruby
12 lines
246 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.integer :kms
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|