Skip to content

Instantly share code, notes, and snippets.

@Codercise
Created February 22, 2016 13:01
Show Gist options
  • Save Codercise/14f9cfd18457818b5067 to your computer and use it in GitHub Desktop.
Save Codercise/14f9cfd18457818b5067 to your computer and use it in GitHub Desktop.
defmodule Reviewmymp.Repo.Migrations.CreatePolitician do
use Ecto.Migration
def change do
create table(:politicians) do
add :uuid, :string
add :first_name, :string
add :last_name, :string
add :preferred_name, :string
add :courtesy_title, :string
add :salutation, :string
add :honorific, :string
add :gender, :string
add :date_of_birth, :string
add :electorate, :string
add :state, :string
add :email, :string
add :telephone, :string
add :chamber, :string
add :level_of_government, :string
add :postal_address, :string
add :fax, :string
add :parliament_phone, :string
add :parliament_fax, :string
add :parliament_po_box, :string
add :principal_office, :string
add :parliamentary_titles, :string
add :website, :string
add :aph_link, :string
add :image_path, :string
add :party, :string
timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment