23 lines
578 B
Ruby
Executable File
23 lines
578 B
Ruby
Executable File
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
|