Sha256: 9ad58ad13c187f67bf2c12bda953aeafebbe5dff077b91bef3503d4fe42e179f
Contents?: true
Size: 715 Bytes
Versions: 1
Compression:
Stored size: 715 Bytes
Contents
class CreateTeleconsultoriasTable < ActiveRecord::Migration def change create_table :teleconsultorias, id: false do |t| t.integer :id, null: false t.string :assunto, limit: 200, null: false t.string :duvida, limit: 2000, null: false t.integer :situacao, null: false, default: 2 t.integer :unidade_saude_id, null: false t.integer :profissional_id, null: false t.integer :consulta_id, null: false t.references :unidade_saude, foreign_key: { to_table: :unidades_saude } t.references :profissional, foreign_key: { to_table: :profissionais } t.references :consulta, foreign_key: { to_table: :consultas } t.timestamps null: false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-sabia-1.0.1 | db/migrate/20170606131217_create_teleconsultorias_table.rb |