class CreateControladoriaVistos < ActiveRecord::Migration[4.2]
  def change
    create_table :controladoria_vistos do |t|
      t.references :vistoriavel, polymorphic: true, index: {:name => "index_controladoria_vistos_on_vistoriavel_type_vistoriavel_id"}
      t.text :mensagem
      t.boolean :aprovado
			t.integer :tipo

      t.timestamps null: false
    end
  end
end
