From c92fd798683f539d1ea6d9ab2e05983cd379fa5b Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 22 Dec 2019 10:04:04 -0500 Subject: [PATCH] provide defaults for gallery description and spoiler warnings --- lib/philomena/galleries/gallery.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena/galleries/gallery.ex b/lib/philomena/galleries/gallery.ex index 9ce4f132..32a0cc10 100644 --- a/lib/philomena/galleries/gallery.ex +++ b/lib/philomena/galleries/gallery.ex @@ -20,8 +20,8 @@ defmodule Philomena.Galleries.Gallery do has_many :subscribers, through: [:subscriptions, :user] field :title, :string - field :spoiler_warning, :string - field :description, :string + field :spoiler_warning, :string, default: "" + field :description, :string, default: "" field :image_count, :integer field :order_position_asc, :boolean