app/models/feature.rb in usman-0.4.7.pre.materialize vs app/models/feature.rb in usman-0.4.8.pre.materialize
- old
+ new
@@ -16,13 +16,11 @@
has_many :permissions
has_many :users, through: :permissions
has_one :cover_image, :as => :imageable, :dependent => :destroy, :class_name => "Image::CoverImage"
# Validations
- validates :name, presence: true, length: {minimum: 3, maximum: 250}
-
-
-
+ validates :name, presence: true, length: {minimum: 3, maximum: 250}
+ validates :feature_category, presence: true, length: {minimum: 2, maximum: 64}
# ------------------
# Class Methods
# ------------------
\ No newline at end of file