class AddStatusToLicitacaoProjeto < ActiveRecord::Migration[4.2]
  def change
    add_column :licitacao_projetos, :status, :integer
    Licitacao::Projeto.all.each do |projeto|
      projeto.status = :aberto
      projeto.save(validate: false)
    end
  end
end
