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

SchemaPlus / schema_validations / 121
100%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2016 06:40AM UTC
Jobs 2
Files 3
Run time 58s
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

pending completion
121

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

3 of 3 new or added lines in 1 file covered. (100.0%)

137 of 138 relevant lines covered (99.28%)

162.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 121.1 (2.1.5, POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis, gemfiles/activerecord-4.2/Gemfile.mysql2) 19 Apr 2016 06:41AM UTC 0
97.1
Travis Job 121.1
3 121.3 (2.1.5, POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis, gemfiles/activerecord-4.2/Gemfile.sqlite3) 19 Apr 2016 06:40AM UTC 0
99.28
Travis Job 121.3
Source Files on build 121
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #121
  • Pull Request #39
  • PR Base - master (#120)
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

© 2025 Coveralls, Inc