add
This commit is contained in:
@ -1,2 +0,0 @@
|
|||||||
class Rutum < ApplicationRecord
|
|
||||||
end
|
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
require "test_helper"
|
|
||||||
|
|
||||||
class RutumTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
Reference in New Issue
Block a user