Creacion de modelos

This commit is contained in:
2024-09-11 20:39:53 -03:00
parent 205e238428
commit e5b3a8335e
16 changed files with 108 additions and 0 deletions

2
app/models/entrega.rb Normal file
View File

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

2
app/models/retiro.rb Normal file
View File

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

2
app/models/rutum.rb Normal file
View File

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

2
app/models/viaje.rb Normal file
View File

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

View File

@ -0,0 +1,7 @@
class CreateRuta < ActiveRecord::Migration[7.2]
def change
create_table :ruta do |t|
t.timestamps
end
end
end

View File

@ -0,0 +1,7 @@
class CreateViajes < ActiveRecord::Migration[7.2]
def change
create_table :viajes do |t|
t.timestamps
end
end
end

View File

@ -0,0 +1,7 @@
class CreateEntregas < ActiveRecord::Migration[7.2]
def change
create_table :entregas do |t|
t.timestamps
end
end
end

View File

@ -0,0 +1,7 @@
class CreateRetiros < ActiveRecord::Migration[7.2]
def change
create_table :retiros do |t|
t.timestamps
end
end
end

11
test/fixtures/entregas.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the "{}" from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value

11
test/fixtures/retiros.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the "{}" from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value

11
test/fixtures/ruta.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the "{}" from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value

11
test/fixtures/viajes.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the "{}" from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value

View File

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

View File

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

View File

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

View File

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