Initial
This commit is contained in:
9
db/migrate/20180412213337_create_contacto_de_preferencia.rb
Executable file
9
db/migrate/20180412213337_create_contacto_de_preferencia.rb
Executable file
@@ -0,0 +1,9 @@
|
||||
class CreateContactoDePreferencia < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :contacto_de_preferencia do |t|
|
||||
t.string :nombre
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
9
db/migrate/20180412213353_create_categoria.rb
Executable file
9
db/migrate/20180412213353_create_categoria.rb
Executable file
@@ -0,0 +1,9 @@
|
||||
class CreateCategoria < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :categoria do |t|
|
||||
t.string :nombre
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
9
db/migrate/20180412213408_create_statuses.rb
Executable file
9
db/migrate/20180412213408_create_statuses.rb
Executable file
@@ -0,0 +1,9 @@
|
||||
class CreateStatuses < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :statuses do |t|
|
||||
t.string :nombre
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
22
db/migrate/20180412214757_create_asociados.rb
Executable file
22
db/migrate/20180412214757_create_asociados.rb
Executable file
@@ -0,0 +1,22 @@
|
||||
class CreateAsociados < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :asociados do |t|
|
||||
t.string :nombre
|
||||
t.string :email
|
||||
t.string :ciudad
|
||||
t.string :estado
|
||||
t.string :direccion
|
||||
t.string :detalles
|
||||
t.string :ejemplo_de_precios
|
||||
t.string :tiempo_de_entregas
|
||||
t.string :telefono
|
||||
t.references :contacto_de_preferencia, foreign_key: true
|
||||
t.references :categoria, foreign_key: true
|
||||
t.references :status, foreign_key: true
|
||||
t.string :notas
|
||||
t.boolean :verificado
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
22
db/migrate/20180412215449_create_solicituds.rb
Executable file
22
db/migrate/20180412215449_create_solicituds.rb
Executable file
@@ -0,0 +1,22 @@
|
||||
class CreateSolicituds < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :solicituds do |t|
|
||||
t.string :nombre
|
||||
t.string :email
|
||||
t.string :ciudad
|
||||
t.string :estado
|
||||
t.string :direccion
|
||||
t.string :detalles
|
||||
t.string :presupuesto
|
||||
t.string :tiempo_de_entrega
|
||||
t.string :telefono
|
||||
t.references :contacto_de_preferencia, foreign_key: true
|
||||
t.references :categoria, foreign_key: true
|
||||
t.references :status, foreign_key: true
|
||||
t.string :notas
|
||||
t.boolean :verificado
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user