• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SchemaPlus / schema_validations / 121 / 3
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2016 06:40AM UTC
Files 3
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Apr 2016 06:39AM UTC coverage: 99.275% (+0.01%) from 99.265%
2.1.5, POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis, gemfiles/activerecord-4.2/Gemfile.sqlite3

Pull #39

travis-ci

dmeranda
Only call the column's case_sensitive? if it is determined by the collation.

When determining whether a uniqueness validation should be case insensitive,
we only want to consider the column's own reported case-sensitivity if it
is a true property of the column, i.e., due to its collation/character set.

The schema_plus_columns gem monkey patches in its own version of
case_sensitive?, for PostgreSQL, that determines this based upon the
properties of ANY indexes in which the column participates. That
method does NOT correctly take into account the index scope.  Since in
PostgreSQL it is possible to have a column participate in two indexes,
one being case-sensitive and another being case-insensitive, it is
important to always consider the scope.  This does not matter with MySQL.
Pull Request #39: Support case-insensitive uniqueness validations under MySQL

137 of 138 relevant lines covered (99.28%)

80.41 hits per line

Source Files on job 121.3 (2.1.5, POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis, gemfiles/activerecord-4.2/Gemfile.sqlite3)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 121
  • Travis Job 121.3
  • 66ac6f7e on github
  • Prev Job for 2.1.5, POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis, gemfiles/activerecord-4.2/Gemfile.sqlite3 on master (#120.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc