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

opentrials / api / 439
94%
master: 92%

Build:
Build:
LAST BUILD BRANCH: v1.1.1
DEFAULT BRANCH: master
Ran 08 Sep 2016 11:51AM UTC
Jobs 1
Files 25
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
439

push

travis-ci

vitorbaptista
[#387] Add entity File that belongs to many Documents

This extracts the attributes related to the actual file location and its text
from the `documents` table to a new `files` table. The reasoning behind it is
that multiple documents can (and do) reference the same file, so this
extraction will allow us to keep a single entry in our database in those cases.

I haven't removed the columns from the `documents` table yet because I want to
populate the `files` table with our current contents before that. After we run
this migration and populate the `files` table, we can add another migration to
remove the then redudant columns.

I also changed to use the "documentcloud_id" instead of its URL so we can
delete files from DocumentCloud as needed (e.g. when they're updated). This
isn't ideal, but we can generate a document's URL based on its ID.

The API changes in this pull request are needed just while we don't finish the
data migration. They will be reverted afterwards.

opentrials/opentrials#387

328 of 350 relevant lines covered (93.71%)

31.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 439.1 08 Sep 2016 11:51AM UTC 0
93.71
Travis Job 439.1
Source Files on build 439
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #439
  • efcdac85 on github
  • Prev Build on add-documents-files (#436)
  • Next Build on add-documents-files (#440)
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