Skip to content

Instantly share code, notes, and snippets.

@shankardevy

shankardevy/create_orders.exs Secret

Created Jul 8, 2017
Embed
What would you like to do?
defmodule Mango.Repo.Migrations.CreateOrders do
use Ecto.Migration
def change do
create table(:orders) do
add :status, :string
add :total, :decimal
add :line_items, {:array, :map}
timestamps()
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment