Topic Voting Plugin - UndefinedTable 异常

您好,

我尝试安装 topic voting plugin,但在加载页面时遇到以下异常:

ActiveRecord::StatementInvalid in ListController#latest
PG::UndefinedTable: ERROR: relation "topic_voting_votes" does not exist LINE 10: WHERE a.attrelid = '"topic_voting_votes"'::regclass ^

是否需要执行某些过程来创建表?(我所做的只是将插件克隆到 plugins 目录的一个子文件夹中,除了重启之外,没有采取其他设置步骤)

更新 - 已解决:我之前不知道,但在开发站点上安装插件时,需要手动运行:

bin/rails db:migrate
1 个赞