2021-09-01 12:43:55 +00:00
|
|
|
alias Architex.{Repo, Account}
|
2021-08-16 17:30:47 +00:00
|
|
|
|
2021-08-31 14:32:04 +00:00
|
|
|
account =
|
|
|
|
Repo.insert!(%Account{
|
|
|
|
localpart: "chuck",
|
|
|
|
password_hash: Bcrypt.hash_pwd_salt("sneed")
|
|
|
|
})
|
2021-07-23 22:13:12 +00:00
|
|
|
|
2021-08-31 14:32:04 +00:00
|
|
|
account
|
|
|
|
|> Ecto.build_assoc(:devices,
|
2021-09-04 14:40:17 +00:00
|
|
|
id: "android",
|
2021-07-23 22:13:12 +00:00
|
|
|
display_name: "My Android",
|
2021-08-31 14:32:04 +00:00
|
|
|
access_token: "sneed"
|
|
|
|
)
|
|
|
|
|> Repo.insert!()
|