summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20170911123607_create_notifications.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-10-08 15:16:39 +0300
committerrinpatch <rinpatch@sdf.org>2019-10-08 15:16:39 +0300
commit32808208bef12996f819d21ca2635837aff98cbf (patch)
tree677e6798940b76be29771a9a574f544772c52e6b /priv/repo/migrations/20170911123607_create_notifications.exs
parent44e0c5cabb157fe2cfc66af0167547ac51f98ff0 (diff)
downloadpleroma-32808208bef12996f819d21ca2635837aff98cbf.tar.gz
pleroma-32808208bef12996f819d21ca2635837aff98cbf.zip
Enable `mix format` for migrations
Diffstat (limited to 'priv/repo/migrations/20170911123607_create_notifications.exs')
-rw-r--r--priv/repo/migrations/20170911123607_create_notifications.exs8
1 files changed, 4 insertions, 4 deletions
diff --git a/priv/repo/migrations/20170911123607_create_notifications.exs b/priv/repo/migrations/20170911123607_create_notifications.exs
index 50de9c5f1..36facc5a0 100644
--- a/priv/repo/migrations/20170911123607_create_notifications.exs
+++ b/priv/repo/migrations/20170911123607_create_notifications.exs
@@ -3,13 +3,13 @@ defmodule Pleroma.Repo.Migrations.CreateNotifications do
def change do
create_if_not_exists table(:notifications) do
- add :user_id, references(:users, on_delete: :delete_all)
- add :activity_id, references(:activities, on_delete: :delete_all)
- add :seen, :boolean, default: false
+ add(:user_id, references(:users, on_delete: :delete_all))
+ add(:activity_id, references(:activities, on_delete: :delete_all))
+ add(:seen, :boolean, default: false)
timestamps()
end
- create_if_not_exists index(:notifications, [:user_id])
+ create_if_not_exists(index(:notifications, [:user_id]))
end
end