Skip to content

Instantly share code, notes, and snippets.

In my restless dreams, I see that town.

Sergio Tapia sergiotapia

In my restless dreams, I see that town.
Block or report user

Report or block sergiotapia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stevedomin / create_post.exs
Last active Jan 16, 2020
Using UUIDs as primary key with Ecto
View create_post.exs
defmodule MyBlog.Repo.Migrations.CreatePost do
use Ecto.Migration
def change do
create table(:posts, primary_key: false) do
add :id, :uuid, primary_key: true
add :body, :string
add :word_count, :integer
You can’t perform that action at this time.