Skip to content

Create Initial Financial Data Models #9

@AfroDevGirl

Description

@AfroDevGirl

A candidate has a FEC identity, the FEC candidate api returns some attributes that are not currently on our Representative data model. On top of that a candidate is financed by a FinancialCommittee, this data model needs to be created.

New Representative attributes:

    t.string :active_through,
    t.array :fec_candidate_ids,
    t.string :candidate_status,
    t.array :cycles,
    t.string :district,
    t.integer :district_number,
    t.array :election_districts,
    t.array :election_years,
    t.boolean :federal_funds_flag,
    t.datetime :first_file_date,
    t.boolean :has_raised_funds,
    t.string :incumbent_challenge,
    t.string :incumbent_challenge_full,
    t.datetime :last_f2_date,
    t.datetime :last_file_date,
    t.datetime :load_date,
    t.string :office,
    t.string :office_full

FinancialCommittee data model:

  t.string  :fec_committee_id,
  t.string  :committee_type,
  t.string  :committee_type_full,
  t.array  :cycles,
  t.string  :designation,
  t.string  :designation_full,
  t.datetime  :first_file_date,
  t.datetime  :last_f1_date,
  t.datetime  :last_file_date,
  t.string  :name,
  t.string  :organization_type,
  t.string  :organization_type_full,
  t.string  :party,
  t.string  :party_full,
  t.string  :state,
  t.string  :treasurer_name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions