Introduce backend for reports
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
13
priv/repo/migrations/20190712132438_create_report_notes.exs
Normal file
13
priv/repo/migrations/20190712132438_create_report_notes.exs
Normal file
@@ -0,0 +1,13 @@
|
||||
defmodule Mobilizon.Repo.Migrations.CreateReportNotes do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:report_notes) do
|
||||
add(:content, :string, null: false)
|
||||
add(:moderator_id, references(:actors, on_delete: :delete_all), null: false)
|
||||
add(:report_id, references(:reports, on_delete: :delete_all), null: false)
|
||||
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user