From 8f3965b9f57041944df74a42755fbb08e401c9a5 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 9 Feb 2021 17:14:44 -0500 Subject: [PATCH] format --- ...20210121200815_add_ban_duration_constraints.exs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/priv/repo/migrations/20210121200815_add_ban_duration_constraints.exs b/priv/repo/migrations/20210121200815_add_ban_duration_constraints.exs index d812ae4e..282d4518 100644 --- a/priv/repo/migrations/20210121200815_add_ban_duration_constraints.exs +++ b/priv/repo/migrations/20210121200815_add_ban_duration_constraints.exs @@ -2,8 +2,16 @@ defmodule Philomena.Repo.Migrations.AddBanDurationConstraints do use Ecto.Migration def change do - create constraint("user_bans", "user_ban_duration_must_be_valid", check: "valid_until < '4000-01-01'") - create constraint("subnet_bans", "subnet_ban_duration_must_be_valid", check: "valid_until < '4000-01-01'") - create constraint("fingerprint_bans", "fingerprint_ban_duration_must_be_valid", check: "valid_until < '4000-01-01'") + create constraint("user_bans", "user_ban_duration_must_be_valid", + check: "valid_until < '4000-01-01'" + ) + + create constraint("subnet_bans", "subnet_ban_duration_must_be_valid", + check: "valid_until < '4000-01-01'" + ) + + create constraint("fingerprint_bans", "fingerprint_ban_duration_must_be_valid", + check: "valid_until < '4000-01-01'" + ) end end