# 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:** 9

<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 月 2 日午前 4:46 UTC](https://meta.discourse.org/t/travis-builds-failing-posts-cached-version-does-not-exist/150081/9 "2020-07-02T04:46:04Z")

</div>

はい、これが私たちが成功させた方法です。マイグレーション前に、関連するテーブルで `reset_column_information` を呼び出しました。どうやら、`cached_version` カラムがスキーマキャッシュ内で「キャッシュ」されているようです ;)。また、これは特に `test` 環境で問題となるようです。

> **[ActiveRecord::Base.reset\_column\_information - APIdock](https://apidock.com/rails/ActiveRecord/Base/reset_column_information/class)**
>
> ActiveRecord::Base.reset\_column\_information - Ruby on Rails API documentation. View source code and usage examples.

---

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