app/models/unidom/price/price.rb in unidom-price-1.7 vs app/models/unidom/price/price.rb in unidom-price-1.7.1

- old
+ new

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