在尝试运行最新版本的插件规约时,我在两个开发实例上遇到了此问题。
(数据库已在测试环境中完全迁移):
例如 bin/rake plugin:spec\[discourse-locations]
加载 rails_helper 时出错。
Failure/Error: default_scope { where(deleted_at: nil) }
ActiveRecord::StatementInvalid:
PG::UndefinedTable: ERROR: relation "chat_channels" does not exist
LINE 9: WHERE a.attrelid = '"chat_channels"'::regclass
< SNIP >
# --- Caused by: ---
# PG::UndefinedTable:
# ERROR: relation "chat_channels" does not exist
# LINE 9: WHERE a.attrelid = '"chat_channels"'::regclass