app/models/unidom/dictionary/dictionary_item.rb in unidom-dictionary-0.3 vs app/models/unidom/dictionary/dictionary_item.rb in unidom-dictionary-0.3.1
- old
+ new
@@ -5,9 +5,8 @@
self.table_name = 'unidom_dictionary_items'
include Unidom::Common::Concerns::ModelExtension
- validates :code, allow_blank: true, length: { in: 1..self.columns_hash['code'].limit }
- validates :value, presence: true, length: { in: 2..self.columns_hash['value'].limit }
+ validates :value, presence: true, length: { in: 2..self.columns_hash['value'].limit }
end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Dictionary::DictionaryItem'