Skip to content

Instantly share code, notes, and snippets.

mreishus / create_post.exs
Created September 12, 2019 01:48 — forked from stevedomin/create_post.exs
Using UUIDs as primary key with Ecto
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
* Simple Benchmarker for PHP While Loops
* USES pcntl_fork() to split to different processes,
* so we assure RAM utilization doesn't "bleed"
* Usage:
* We are using php files for the large test, just to get a bunch of "random"