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