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

ctran / annotate_models / 439 / 2
81%
develop: 81%

Build:
DEFAULT BRANCH: develop
Ran 12 Feb 2016 12:32AM UTC
Files 8
Run time 0s
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

11 Feb 2016 08:54AM UTC coverage: 71.384% (-0.1%) from 71.496%
2.0

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

454 of 636 relevant lines covered (71.38%)

66.55 hits per line

Source Files on job 439.2 (2.0)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 439
  • Travis Job 439.2
  • 763487d1 on github
  • Prev Job for 2.0 on develop (#437.2)
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