Skip to content

Instantly share code, notes, and snippets.

View ssnickolay's full-sized avatar
💯
Embrace The Suck

Nick S. ssnickolay

💯
Embrace The Suck
View GitHub Profile
‽Erlang/OTP 19 [erts-8.3] [64-bit] [smp:8:8] [async-threads:10]
Interactive Elixir (1.4.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> c("tst_gen.ex")
[TstGen]
iex(2)>
nil
iex(3)> {:ok, pid} = TstGen.start_link
{:ok, #PID<0.88.0>}
iex(4)>
@alanpeabody
alanpeabody / model.ex
Last active January 3, 2024 03:29
Ecto change password w/ confirmation.
defmodule User do
use Ecto.Model
schema "users" do
field :email, :string
field :hashed_password, :string
field :password, :string, virtual: true
field :password_confirmation, virtual: true
timestamps