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

scarver2 / ehr-portal / 23570424271
78%

Build:
DEFAULT BRANCH: main
Ran 26 Mar 2026 12:01AM UTC
Jobs 1
Files 43
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

26 Mar 2026 12:01AM UTC coverage: 76.554%. Remained the same
23570424271

push

github

web-flow
feat: Implement Rails-ERD for automated Entity Relationship Diagrams (#54)

* Revert "improvement: Make Providers and Clinics panels link to their ActiveAdmin pages"

This reverts commit d38c5cba1.

* feat: Implement Rails-ERD for automated Entity Relationship Diagrams

Added Rails-ERD gem and infrastructure for generating and maintaining
Entity Relationship Diagrams as living documentation.

## Changes

### Gems
- Added rails-erd (~> 1.7.2) to development group
- Requires GraphViz for diagram generation (brew install graphviz)

### Scripts
- bin/erd - Custom script to generate ERD diagrams
  - Generates PNG images and DOT source files
  - Located at doc/erd.png and doc/erd.dot
  - Configured with inheritance and polymorphism support

### Configuration
- .erdconfig - Rails-ERD configuration
  - Crow's foot notation for cardinality
  - Include inheritance and polymorphic relationships
  - Show content and timestamp attributes

### Documentation
- doc/ERD.md - Complete ERD guide
  - Setup instructions (GraphViz installation)
  - How to generate and update diagrams
  - Understanding diagram notation and symbols
  - Workflow for keeping diagrams in sync with schema
  - Customization and CI/CD integration
  - Troubleshooting guide

- doc/SCHEMA.md - Database schema reference
  - Complete entity relationship groups documentation
  - All table structures and field descriptions
  - Relationship definitions
  - Enum fields (Patient.gender)
  - Indexes and constraints
  - Common query patterns
  - Performance considerations
  - Future schema enhancement ideas

## Usage

Generate/update ERD diagrams:
```bash
bin/erd
```

This generates:
- doc/erd.png - Visual diagram
- doc/erd.dot - GraphViz source (editable)

## Workflow

When schema changes:
1. Create migration and model
2. Run `bundle exec rails db:migrate`
3. Run `bin/erd`
4. Commit model, migration, and updated doc/erd.*

## Next Steps

After installing GraphViz:
1. Run `bin/e... (continued)

353 of 493 branches covered (71.6%)

Branch coverage included in aggregate %.

509 of 633 relevant lines covered (80.41%)

18.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23570424271.1 26 Mar 2026 12:01AM UTC 43
76.55
GitHub Action Run
Source Files on build 23570424271
  • Tree
  • List 43
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23570424271
  • 19a73773 on github
  • Prev Build on main (#23570260911)
  • Next Build on main (#23572037483)
  • 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