mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 14:17:59 +01:00
bump max commission item price to $99999
This commit is contained in:
parent
a20d42c38e
commit
6fd4db95c3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue