更改:附件描述长度为255
This commit is contained in:
		
							parent
							
								
									69e611c427
								
							
						
					
					
						commit
						0d03ef88b4
					
				| 
						 | 
				
			
			@ -72,7 +72,7 @@ class Attachment < ApplicationRecord
 | 
			
		|||
  scope :unified_setting, -> {where("unified_setting = ? ", 1)}
 | 
			
		||||
  scope :where_id_or_uuid, -> (id) { (Float(id) rescue nil).present? ? where(id: id) : where(uuid: id) }
 | 
			
		||||
 | 
			
		||||
  validates_length_of :description, maximum: 100, message: "不能超过100个字符"
 | 
			
		||||
  validates_length_of :description, maximum: 255, message: "不能超过100个字符"
 | 
			
		||||
 | 
			
		||||
  DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue