defmodule DaProductApp.Repo.Migrations.CreateAddress do use Ecto.Migration def change do create table(:address, primary_key: false) do add :id, :integer, primary_key: true, null: false add :line1, :string, size: 45 add :line2, :string, size: 45 add :line3, :string, size: 45 add :line4, :string, size: 45 add :city, :string, size: 45 add :state, :string, size: 45 add :country, :string, size: 45 add :postalcode, :string, size: 45 end end end