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

NZOI / nztrain / 724
33%
master: 38%

Build:
Build:
LAST BUILD BRANCH: feature/subtask-scoring
DEFAULT BRANCH: master
Ran 30 Jan 2020 03:55AM UTC
Jobs 1
Files 153
Run time 17s
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
724

Pull #69

travis-ci

web-flow
Set null attribute of timestamps in migrations to match schema

Rails has flipped the default back and forth between `null: true` and
`null: false` (full history below). As a result, our database schema
has a mixture of them.

Explicitly set `null: true` or `null: false` in the migrations to
reliably match the current schema.

Rails History:

 - In Rails 3.2 the default was changed to `null: false`.
   Release notes: https://guides.rubyonrails.org/3_2_release_notes.html#active-record
   Pull request: #3334
   Commit: 3dbedd282

 - In Rails 4.0 this was reverted, with the the explanation that when
   timestamp columns are added to an existing table, the existing
   records don't have timestamps and the "not null" constraint fails
   Commit: fcef72890
   Commit: ccf7cd05a (pull request #7095)

 - In Rails 4.2, `timestamps` without an explicit `null` option was
   deprecated in preparation for making `null: false` the default
   Release notes: https://guides.rubyonrails.org/4_2_release_notes.html#active-record-deprecations
   Pull request: #16481

 - In Rails 5, the default was changed back to `null: false`
   Release notes: https://guides.rubyonrails.org/5_0_release_notes.html#active-record-notable-changes
   Commit: a939506f2
Pull Request #69: Fix null attributes of timestamps to match server

2309 of 6982 relevant lines covered (33.07%)

4.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 724.1 (2.3.8) 30 Jan 2020 03:55AM UTC 0
33.07
Travis Job 724.1
Source Files on build 724
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #724
  • Pull Request #69
  • PR Base - master (#533)
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