This commit is contained in:
Rüdiger Diedrich
2024-01-20 19:10:56 +01:00
commit 5e6035ac46
936 changed files with 5995 additions and 0 deletions

View File

@ -0,0 +1,4 @@
[
import_deps: [:ecto_sql],
inputs: ["*.exs"]
]

View File

@ -0,0 +1,12 @@
defmodule Webmon.Repo.Migrations.CreateWebsites do
use Ecto.Migration
def change do
create table(:websites) do
add :name, :string
add :url, :string
timestamps(type: :utc_datetime)
end
end
end

11
priv/repo/seeds.exs Normal file
View File

@ -0,0 +1,11 @@
# Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Webmon.Repo.insert!(%Webmon.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if something goes wrong.