class CreateContabilidadeEmpenhos < ActiveRecord::Migration[4.2]
	def change
		create_table :contabilidade_empenhos do |t|
			t.integer :orcamento_id
			t.integer :obra_id
			t.integer :pessoa_id
			t.integer :convenio_id
			t.integer :subacao_id
			t.integer :licitacao_id
			t.integer :numero_do_empenho
			t.integer :modalidade
			t.string :numero_do_contrato, limit: 15
			t.text :historico
			t.date :data_do_empenho
			t.decimal :valor, precision: 12, scale: 2

			t.timestamps null: false
		end
	end
end
