act-as-taggable-on gem - “taggings_count”不存在

时间:2016-09-20 18:03:29

标签: ruby-on-rails ruby rspec

升级gem acts-as-taggable-on并应用迁移后:

   rake acts_as_taggable_on_engine:install:migrations
   rake db:migrate

我一直在测试中出现错误:

ActiveRecord::StatementInvalid:
       PG::UndefinedColumn: ERROR:  column "taggings_count" does not exist                                                      
       LINE 1: UPDATE "tags" SET "taggings_count" = COALESCE("taggings_coun...

0 个答案:

没有答案