```ruby
module Spree
  module Validations
    class DbMaximumLengthValidator < ActiveModel::Validator
      def validate(record)
        field = @field.to_sym
        limit = record.column_for_attribute(field).limit
        value = record[field]
        if value && limit && value.to_s.length > limit
          record.errors.add(field, :too_long, count: limit)
        end
      end
    end
  end
end
```

Use the right syntax for DbMaximumLengthValidator
user
```ruby
module Spree
  module Validations
    class DbMaximumLengthValidator < ActiveModel::Validator
      def validate(record)
        field = options[:field]
        limit = record.column_for_attribute(field).limit
        value = record[field]
        if value && limit && value.to_s.length > limit
          record.errors.add(field, :too_long, count: limit)
        end
      end
    end
  end
end
```
assistant