class CreateBaseAgentesPublicosMunicipais < ActiveRecord::Migration[4.2]
  def change
    create_table :base_agentes_publicos_municipais do |t|
      t.integer :unidade_orcamentaria_id
      t.string :cpf
      t.string :ingresso_sistema_publico_municipal
      t.string :tipo_relacao_servico_publico
      t.string :numero_de_posse
      t.date :data_da_posse
      t.string :tipo_de_amparo_legal
      t.date :data_do_amparo_legal
      t.date :data_da_publicacao_do_amparo_legal
      t.date :data_da_posse
      t.string :matricula_municipal
      t.integer :situacao_funcional
      t.string :regime_juridico
      t.string :regime_previdenciario
      t.integer :codigo_ocupacao
      t.integer :tipo_de_cargo
      t.integer :carga_horaria_semanal
      t.integer :tipo_de_programa
      t.string :codigo_pis_pasep
      t.string :numero_identidade
      t.string :expeditor_identidade
      t.string :titulo_de_eleitor
      t.integer :estado_civil_id
      t.integer :grau_de_instrucao
      t.integer :codigo_sexo
      t.string :nome
      t.string :nome_da_mae
      t.string :nome_do_pai
      t.string :endereco
      t.string :telefone
      t.date :data_de_nascimento
      t.integer :numero_de_dependentes

      t.timestamps null: false
    end
  end

  def self.down
  end
end
