Skip to content

Instantly share code, notes, and snippets.

@andyklimczak
Last active May 22, 2023 12:46
Show Gist options
  • Save andyklimczak/ba8694dfeaffb3546e89ea5cb92040de to your computer and use it in GitHub Desktop.
Save andyklimczak/ba8694dfeaffb3546e89ea5cb92040de to your computer and use it in GitHub Desktop.
Elixir Phoenix Cheatsheet

Add index to field:

create table(:posts) do
  add :rating, :integer
end

create index(:posts, [:rating])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment