diff options
author | Maxim Filippov <colixer@gmail.com> | 2019-12-03 23:54:07 +0900 |
---|---|---|
committer | Maxim Filippov <colixer@gmail.com> | 2019-12-04 00:26:37 +0900 |
commit | 4b60d41db9d10e971ee91202389991da294c72de (patch) | |
tree | c5923b3f14d7a630ea4babb51925b8e0f692ee9b /priv/repo/migrations/20191203043610_create_report_notes.exs | |
parent | d468cba2d56f60a41b0372a381b1017a8d2d046b (diff) | |
download | pleroma-4b60d41db9d10e971ee91202389991da294c72de.tar.gz pleroma-4b60d41db9d10e971ee91202389991da294c72de.zip |
Add report notes
Diffstat (limited to 'priv/repo/migrations/20191203043610_create_report_notes.exs')
-rw-r--r-- | priv/repo/migrations/20191203043610_create_report_notes.exs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/priv/repo/migrations/20191203043610_create_report_notes.exs b/priv/repo/migrations/20191203043610_create_report_notes.exs new file mode 100644 index 000000000..a4f8c096d --- /dev/null +++ b/priv/repo/migrations/20191203043610_create_report_notes.exs @@ -0,0 +1,13 @@ +defmodule Pleroma.Repo.Migrations.CreateReportNotes do + use Ecto.Migration + + def change do + create_if_not_exists table(:report_notes) do + add(:user_id, references(:users, type: :uuid)) + add(:activity_id, references(:activities, type: :uuid)) + add(:content, :string) + + timestamps() + end + end +end |