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

opentrials / api / 335
94%
master: 92%

Build:
Build:
LAST BUILD BRANCH: v1.1.1
DEFAULT BRANCH: master
Ran 18 Jul 2016 10:46AM UTC
Jobs 1
Files 24
Run time 1s
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
335

push

travis-ci

vitorbaptista
[#254] Returns documents and change relationship between it and trials

We had a `trials_documents` table to generate a many-to-many relationship
between trials and documents. However, a single document can't cite multiple
trials (AFAIK), so we can simplify that to a 1-to-many relationship. This means
we can remove the `trials_documents` table.

I also removed the `documents.slug` column, as we're not using it, and added
the `type` (e.g. csr, epar_segment, ...) and `url` columns. For now, the trials
endpoint returns an array of these documents with their `name`, `type` and
`url`.

opentrials/opentrials#254

320 of 342 relevant lines covered (93.57%)

32.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 335.1 18 Jul 2016 10:46AM UTC 0
93.57
Travis Job 335.1
Source Files on build 335
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #335
  • f349d15f on github
  • Prev Build on trials-documents (#333)
  • Next Build on trials-documents (#337)
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