Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Sidekiq does not see changes in database table

$
0
0

Versions:ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]Rails 5.1.7sidekiq 6.0(Gem)

In my application I can add one string column and this column is added to a database table that is used to assign one paramter to existing table. I use ActiveRecord::Migration add_column to add the column.

The column is indeed added, but when I run the Sidekiq job, it complains about this new column missing:ActiveModel::UnknownAttributeError: unknown attribute 'visma_id' for BookingItem.

Restarting Sidekiq doesn't help.

This doesn't happen in development, only in production.

Any suggestions?


Viewing all articles
Browse latest Browse all 873

Trending Articles