discourse/app/models/user_field.rb

4 lines
98 B
Ruby

class UserField < ActiveRecord::Base
validates_presence_of :name, :description, :field_type
end