     timestamps()
   end
 
-  @doc false
   def changeset(%Member{} = member, attrs \\ %{}) do
     member
     |> cast(attrs, @required_fields ++ @optional_fields)
     |> validate_required([@required_fields])
   end
-end
+end
defmodule Who.Member do
  use Ecto.Schema
  import Ecto.Changeset
  alias Who.Member

  @required_fields ~w(
      chamber
      current_party
      date_of_birth
      district
      end_date
      first_name
      last_name
      member_id
      start_date
      state
      title
    )a

  @optional_fields ~w(
      at_large
      bills_cosponsored
      bills_sponsored
      contact_form
      facebook_account
      fax
      middle_name
      missed_votes_pct
      most_recent_vote
      office
      phone
      twitter_account
      url
      votes_with_party_pct
      youtube_account
    )a


  schema "members" do
    field :at_large, :string

    field :member_id, :string
    field :middle_name, :string
    field :missed_votes_pct, :float
    field :most_recent_vote, :utc_datetime
    field :office, :string
    field :phone, :string
    field :start_date, :utc_datetime
    field :state, :string
    field :title, :string
    field :twitter_account, :string
