architex/priv/repo/seeds.exs
2021-08-30 18:27:34 +02:00

12 lines
239 B
Elixir

alias MatrixServer.{Repo, Account, Device}
Repo.insert!(%Account{
localpart: "chuck",
password_hash: Bcrypt.hash_pwd_salt("sneed")
})
Repo.insert(%Device{
device_id: "android",
display_name: "My Android",
localpart: "chuck"
})