architex/priv/repo/seeds.exs

13 lines
239 B
Elixir
Raw Normal View History

2021-08-30 16:27:34 +00:00
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"
})