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

trotzig / diffux / 355
99%

Build:
DEFAULT BRANCH: master
Ran 06 Apr 2014 12:18AM UTC
Jobs 2
Files 32
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

pending completion
355

push

travis-ci

trotzig
Add cleanup script to remove orphans

I've just pushed a batch of commits that make sure that we
cascade-delete things. Up until that point however, we weren't doing a
good job of keeping orphans out of the database. In order to help people
get their database in mint condition, I'm adding a script to clean out
any orphans.

To run the script:

```bash
be rails runner 'DBCleanup.destroy_all_orphans!'
```

Actually, that's not the way. By default, the script will do a dry-run,
and simply log what would have been deleted. To actually delete things,
you need to pass in `dryrun: false`

```bash
be rails runner 'DBCleanup.destroy_all_orphans!(dryrun: false)'
```

602 of 610 relevant lines covered (98.69%)

82.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 355.1 (2.0.0) 06 Apr 2014 12:19AM UTC 0
98.69
Travis Job 355.1
2 355.2 (2.1.0) 06 Apr 2014 12:18AM UTC 0
98.69
Travis Job 355.2
Source Files on build 355
  • Tree
  • List 0
  • Changed 9
  • Source Changed 4
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #355
  • 6fb38236 on github
  • Prev Build on master (#354)
  • Next Build on master (#358)
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