app/models/unidom/price/price.rb in unidom-price-1.7.3 vs app/models/unidom/price/price.rb in unidom-price-1.7.4

- old
+ new

@@ -7,10 +7,10 @@ self.table_name = 'unidom_prices' include Unidom::Common::Concerns::ModelExtension include ProgneTapera::EnumCode - validates :amount, presence: true, numericality: { greater_than: 0, less_than: 1_000_000_000 } + validates :amount, presence: true, numericality: { greater_than_or_equal_to: 0, less_than_or_equal_to: 1_000_000_000 } belongs_to :priced, polymorphic: true belongs_to :pricer, polymorphic: true scope :priced_by, ->(pricer) { where pricer: pricer }