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

mroderick / codebar-planner / 24156485341
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: fix/invitation-log-retry-handling
DEFAULT BRANCH: master
Ran 08 Apr 2026 08:20PM UTC
Jobs 1
Files 182
Run time 1min
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

08 Apr 2026 08:16PM UTC coverage: 95.507%. Remained the same
24156485341

push

github

mroderick
fix: add unique index on subscriptions to prevent duplicate entries

- Uses disable_ddl_transaction! (https://api.rubyonrails.org/classes/ActiveRecord/Migration.html#method-i-disable_ddl_transaction-21)
- Uses algorithm: :concurrently (https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-add_index)
- Removes 31 duplicate subscriptions from production database
- Prevents race conditions from causing duplicate entries in future

Why (member_id, group_id) not (member_id, chapter_id)?
- Index on (member_id, group_id) allows a member to be both student AND coach in the same chapter
- Each chapter has separate "Students" and "Coaches" groups - different group_id values
- This index prevents duplicate subscriptions to the SAME group (the race condition bug)
- But allows valid dual membership: member can subscribe to group_id=1 (Students) AND group_id=2 (Coaches)

3465 of 3628 relevant lines covered (95.51%)

46.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24156485341.1 08 Apr 2026 08:20PM UTC 1092
69.99
GitHub Action Run
Source Files on build 24156485341
  • Tree
  • List 182
  • Changed 118
  • Source Changed 0
  • Coverage Changed 118
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24156485341
  • d8812960 on github
  • Prev Build on fix/deduplicate-chapter-members (#24155059187)
  • Next Build on fix/subscription-unique-index (#24156436934)
  • Delete
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