Migrate poll options max 4 to 8

This commit is contained in:
KMY 2023-04-02 12:33:03 +09:00
parent 239d4a3ed0
commit 9cee344e99
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
class PollValidator < ActiveModel::Validator
MAX_OPTIONS = 4
MAX_OPTIONS = 8
MAX_OPTION_CHARS = 50
MAX_EXPIRATION = 1.month.freeze
MIN_EXPIRATION = 5.minutes.freeze