Railsで設定済みのvalidateを取得
User.validators
=> [
#<ActiveRecord::Validations::UniquenessValidator ...>,
#<ActiveModel::Validations::LengthValidator ...>
]
User.validators[0].attributes
=> [:name]
User.validators[0].options
=> {:maximum=>32, :minimum=>7}
のように確認できる