discourse/app/models/user_field.rb

5 lines
85 B
Ruby

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