12 lines
314 B
Elixir
12 lines
314 B
Elixir
defmodule ChoreTracker.Repo.Migrations.CreateChoreLogs do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:chore_logs) do
|
|
add :chore_id, references(:chores, on_delete: :delete_all)
|
|
add :user_id, references(:users, on_delete: :delete_all)
|
|
|
|
timestamps(type: :utc_datetime)
|
|
end
|
|
end
|
|
end
|