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

ctran / annotate_models / 439
81%

Build:
DEFAULT BRANCH: develop
Ran 11 Feb 2016 08:55AM UTC
Jobs 6
Files 8
Run time 938min
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

Pull #342

travis-ci

akihiro17
Annotate should reset the cached information about columns

Annotate should reset the cached information about columns because Annotate may output old information if we load ActiveRecord::Base class in migration files.

For example, if we have a following migration file and execute 'rake db:migrate', Annote does not output the default value and a not null constraint of the `some_value` column.

```ruby
class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.integer :some_value
    end

    # add a not null constraint to the some_value column

    # should update some_value with not null values
    # because records might exist which have null value in the some_value column

    Post.update_all(some_value: 1)

    change_column_null(:posts, :some_value, false)
    change_column_default(:posts, :some_value, 1)
  end
end
```

This commit fixes the above issue.
Pull Request #342: Annotate should reset the cached information about columns

456 of 640 relevant lines covered (71.25%)

428.88 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
29
100.0
lib/annotate/annotate_models.rb
Jobs
ID Job ID Ran Files Coverage
1 439.1 (1.9.3) 12 Feb 2016 12:32AM UTC 0
71.43
Travis Job 439.1
2 439.2 (2.0) 12 Feb 2016 12:32AM UTC 0
71.38
Travis Job 439.2
3 439.3 (2.1) 12 Feb 2016 12:32AM UTC 0
71.38
Travis Job 439.3
4 439.4 (2.2) 12 Feb 2016 12:32AM UTC 0
71.38
Travis Job 439.4
5 439.5 (2.3.0) 12 Feb 2016 12:32AM UTC 0
71.38
Travis Job 439.5
6 439.6 (ruby-head) 12 Feb 2016 12:33AM UTC 0
71.38
Travis Job 439.6
Source Files on build 439
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #439
  • Pull Request #342
  • PR Base - develop (#437)
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