RubyGems Navigation menu

string_length_conformable 0.2.3

This gem resolves basically two problems. --- 1. MySQL for strings(VARCHAR(255)) by default has limit 255 characters. And when developer left this attribute without any length validation, then it's possible to face with situation when user unintentionally or intentionally will pass in text field more characters. So, then, probably you will get 500... --- 2. PostgreSQL. The maximum number of characters for variable unlimited length types (text, varchar) is undefined. There is a limit of size in bytes for all string types: In any case, the longest possible character string that can be stored is about 1 GB. And when developer left this attribute without any length validation, then it's possible to face with situation when user unintentionally or intentionally will try to full up your database with lots of GB of 'important' info. --- Both of this cases, I guess, are not very pleasant. This gem adds default length validation for all string attributes. Except those which are already vlidated in standart rails way.

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 0.2.3 October 25, 2018 (8.5KB)
  2. 0.2.2 October 22, 2018 (8.5KB)
  3. 0.2.1 October 22, 2018 (8.5KB)
  4. 0.1.0 October 19, 2018 (7.5KB)
全てのバージョンを表示(全5件)

Development依存関係 (3):

bundler ~> 1.16
rake ~> 10.0
rspec ~> 3.0

所有者:

作者:

  • Vladimir

SHA 256チェックサム:

=

累計ダウンロード数 6,636

このバージョンのみ 2,055

このバージョンがリリースされたのは:

ライセンス:

MIT

必要なRubyのバージョン: >= 0

リンク: