Creacion de modelos
This commit is contained in:
2
app/models/entrega.rb
Normal file
2
app/models/entrega.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class Entrega < ApplicationRecord
|
||||
end
|
2
app/models/retiro.rb
Normal file
2
app/models/retiro.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class Retiro < ApplicationRecord
|
||||
end
|
2
app/models/rutum.rb
Normal file
2
app/models/rutum.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class Rutum < ApplicationRecord
|
||||
end
|
2
app/models/viaje.rb
Normal file
2
app/models/viaje.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class Viaje < ApplicationRecord
|
||||
end
|
7
db/migrate/20240911231722_create_ruta.rb
Normal file
7
db/migrate/20240911231722_create_ruta.rb
Normal file
@ -0,0 +1,7 @@
|
||||
class CreateRuta < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :ruta do |t|
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
7
db/migrate/20240911231807_create_viajes.rb
Normal file
7
db/migrate/20240911231807_create_viajes.rb
Normal file
@ -0,0 +1,7 @@
|
||||
class CreateViajes < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :viajes do |t|
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
7
db/migrate/20240911233401_create_entregas.rb
Normal file
7
db/migrate/20240911233401_create_entregas.rb
Normal file
@ -0,0 +1,7 @@
|
||||
class CreateEntregas < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :entregas do |t|
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
7
db/migrate/20240911233430_create_retiros.rb
Normal file
7
db/migrate/20240911233430_create_retiros.rb
Normal 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
11
test/fixtures/entregas.yml
vendored
Normal 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
11
test/fixtures/retiros.yml
vendored
Normal 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
11
test/fixtures/ruta.yml
vendored
Normal 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
11
test/fixtures/viajes.yml
vendored
Normal 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
|
7
test/models/entrega_test.rb
Normal file
7
test/models/entrega_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class EntregaTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
7
test/models/retiro_test.rb
Normal file
7
test/models/retiro_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class RetiroTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
7
test/models/rutum_test.rb
Normal file
7
test/models/rutum_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class RutumTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
7
test/models/viaje_test.rb
Normal file
7
test/models/viaje_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class ViajeTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Reference in New Issue
Block a user