bump max commission item price to $99999

This commit is contained in:
Luna D 2021-09-07 21:58:34 +02:00
parent a20d42c38e
commit 6fd4db95c3
No known key found for this signature in database
GPG key ID: 81AF416F2CC36FC8

View file

@ -24,7 +24,7 @@ defmodule Philomena.Commissions.Item do
|> validate_required([:commission_id, :base_price, :item_type, :description])
|> validate_length(:description, max: 300, count: :bytes)
|> validate_length(:add_ons, max: 500, count: :bytes)
|> validate_number(:base_price, greater_than_or_equal_to: 0, less_than_or_equal_to: 500)
|> validate_number(:base_price, greater_than_or_equal_to: 0, less_than_or_equal_to: 99_999)
|> validate_inclusion(:item_type, Commission.types())
|> foreign_key_constraint(:example_image_id, name: :fk_rails_56d368749a)
end