Когда вы говорите, что обновляете свою схему, означает ли это, что вы обновляете файл db / schema.rb, или фактические миграции?
Если вы обновляете файл schema.rb, вы должны заметить, что он не будет работать, поскольку файл генерируется автоматически.
См. Комментарий вверху файла:
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.