This commit is contained in:
2024-09-11 20:56:54 -03:00
parent aea7c21e8c
commit 8c63022011
5 changed files with 7 additions and 9 deletions

View File

@ -1,2 +0,0 @@
class Rutum < ApplicationRecord
end

View File

@ -2,6 +2,9 @@ class CreateViajes < ActiveRecord::Migration[7.2]
def change def change
create_table :viajes do |t| create_table :viajes do |t|
t.belongs_to :ruta t.belongs_to :ruta
t.string :direccion_partida
t.string :direccion_llegada
t.int :kms
t.has_many :entregas t.has_many :entregas
t.has_many :retiros t.has_many :retiros
t.timestamps t.timestamps

View File

@ -2,6 +2,8 @@ class CreateEntregas < ActiveRecord::Migration[7.2]
def change def change
create_table :entregas do |t| create_table :entregas do |t|
t.belongs_to :viaje t.belongs_to :viaje
t.string :nombre_recibe # Quien recibe
t.string :carga # Detalles de la carga, serializado
t.timestamps t.timestamps
end end
end end

View File

@ -2,6 +2,8 @@ class CreateRetiros < ActiveRecord::Migration[7.2]
def change def change
create_table :retiros do |t| create_table :retiros do |t|
t.belongs_to :viaje t.belongs_to :viaje
t.string :nombre_entrega # Quien entrega
t.string :carga # Detalles de la carga, serializado
t.timestamps t.timestamps
end end
end end

View File

@ -1,7 +0,0 @@
require "test_helper"
class RutumTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end