class CreateRequisicoesDeRelatorios < ActiveRecord::Migration[5.2]
  def change
    create_table :requisicoes_de_relatorios do |t|
      t.bigint :usuario_id
      t.string :url
      t.string :titulo
      t.integer :status
      t.string :parametros
      t.string :gerado_em
      t.string :motivo_da_falha
      t.integer :contexto_id
      t.string :contexto_tipo
      t.binary :pdf
      t.string :token

      t.timestamps
    end
  end
end
