From 11a011db154c2ab1b7e10d6573c30258e80b0029 Mon Sep 17 00:00:00 2001 From: sokie Date: Tue, 13 Jan 2026 13:51:10 +0100 Subject: [PATCH] Update import.rb --- app/models/import.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/import.rb b/app/models/import.rb index 86ea58826..c01023803 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -40,7 +40,7 @@ class Import < ApplicationRecord validates :col_sep, inclusion: { in: SEPARATORS.map(&:last) } validates :signage_convention, inclusion: { in: SIGNAGE_CONVENTIONS }, allow_nil: true validates :number_format, presence: true, inclusion: { in: NUMBER_FORMATS.keys } - validates :rows_to_skip, numericality: { greater_than_or_equal_to: 0 } + validates :rows_to_skip, numericality: { only_integer: true, greater_than_or_equal_to: 0 } validate :account_belongs_to_family validate :rows_to_skip_within_file_bounds