# Travis ビルドが失敗：posts.cached\_version が存在しません

**URL:** <https://meta.discourse.org/t/travis-builds-failing-posts-cached-version-does-not-exist/150081>\
**Category:** Development\
**Created:** [2020 年 5 月 1 日午後 3:42 UTC](https://meta.discourse.org/t/travis-builds-failing-posts-cached-version-does-not-exist/150081 "2020-05-01T15:42:02Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [2020 年 7 月 1 日午前 8:44 UTC](https://meta.discourse.org/t/travis-builds-failing-posts-cached-version-does-not-exist/150081/8 "2020-07-01T08:44:20Z")

</div>

vanilla な開発環境で `discourse-ratings` プラグインのみを実行している際、同じ問題が発生しています。`cached_version` カラムを明示的に要求するコードは見当たりません。

コミットハッシュ: 093ee1d80c269afd00ba1341a3e71eb97e4ce7f1

`RAILS_ENV=test rake db:drop db:create db:migrate` を実行したため、DB にはデータが存在しないはずです。

問題の行は以下です。

> <https://github.com/paviliondev/discourse-ratings/blob/76ec8e20754070be593503d45e25b789c002537b/db/migrate/20200520084648_add_rating_types.rb#L6>

---

_[View the full topic](https://meta.discourse.org/t/travis-builds-failing-posts-cached-version-does-not-exist/150081)._
