Reviewed-on: https://git.nikos.gg/prymn/prymn/pulls/9 Co-authored-by: Nikos Papadakis <nikos@papadakis.xyz> Co-committed-by: Nikos Papadakis <nikos@papadakis.xyz>
13 lines
332 B
Elixir
13 lines
332 B
Elixir
# Script for populating the database. You can run it as:
|
|
#
|
|
# mix run priv/repo/seeds.exs
|
|
|
|
Prymn.Accounts.register_user(%{email: "dev@test", password: "password"})
|
|
|
|
Prymn.Repo.insert!(%Prymn.Servers.Server{
|
|
status: :registered,
|
|
public_ip: "127.0.0.1",
|
|
name: "local server",
|
|
provider: :Custom,
|
|
registration_token: ""
|
|
})
|