clacks/priv/repo/migrations/20200523200009_create_notif...

14 lines
293 B
Elixir
Raw Normal View History

2020-05-24 20:26:10 +00:00
defmodule Clacks.Repo.Migrations.CreateNotifications do
use Ecto.Migration
def change do
create table(:notifications) do
add :type, :string
add :user_id, references(:users)
add :activity_id, references(:activities, type: :uuid)
timestamps()
end
end
end