Added code for defining SHA attributes
These attributes are stored in binary in the database, but exposed as strings. This allows one to query/create data using plain SHA1 hashes as Strings, while storing them more efficiently as binary.
显示
- app/models/concerns/sha_attribute.rb 18 个添加, 0 个删除app/models/concerns/sha_attribute.rb
- doc/development/README.md 1 个添加, 0 个删除doc/development/README.md
- doc/development/sha1_as_binary.md 36 个添加, 0 个删除doc/development/sha1_as_binary.md
- lib/gitlab/database/sha_attribute.rb 34 个添加, 0 个删除lib/gitlab/database/sha_attribute.rb
- spec/lib/gitlab/database/sha_attribute_spec.rb 33 个添加, 0 个删除spec/lib/gitlab/database/sha_attribute_spec.rb
- spec/models/concerns/sha_attribute_spec.rb 27 个添加, 0 个删除spec/models/concerns/sha_attribute_spec.rb
加载中
想要评论请 注册 或 登录