app/models/unidom/geo/china/region.rb in unidom-geo-china-0.5.1 vs app/models/unidom/geo/china/region.rb in unidom-geo-china-0.5.2

- old
+ new

@@ -31,10 +31,10 @@ include Unidom::Geo::China::Concerns::AsInferiorRegion include Unidom::Geo::China::Concerns::AsSuperiorRegion validates :numeric_code, presence: true, numericality: { integer_only: true, greater_than_or_equal_to: 0 }, length: { minimum: columns_hash['numeric_code'].limit } validates :alphabetic_code, allow_blank: true, length: { minimum: 2 } - validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit } + validates :name, presence: true, length: { in: 1..self.columns_hash['name'].limit } belongs_to :scheme, polymorphic: true has_many :towns, class_name: 'Unidom::Geo::China::Town'