added comments to tweets

This commit is contained in:
2026-04-06 14:11:10 -04:00
parent 6927f6eb9b
commit faa96d88f5
7 changed files with 587 additions and 9 deletions

View File

@@ -0,0 +1,30 @@
defmodule Mixer.Repo.Migrations.AddTweetComments do
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up do
alter table(:tweets) do
add :parent_tweet_id,
references(:tweets,
column: :id,
name: "tweets_parent_tweet_id_fkey",
type: :uuid,
prefix: "public",
on_delete: :delete_all
)
end
end
def down do
drop constraint(:tweets, "tweets_parent_tweet_id_fkey")
alter table(:tweets) do
remove :parent_tweet_id
end
end
end