我正在try 将列"isGroup"的值更改为"public".
我创建了一个迁移:
Post.connection.execute("update Posts set isgroup='public'")
但是,我得到了以下错误:
PGError: ERROR: column "isgroup" of relation "posts" does not exist
不幸的是,我在连接的同时运行了创建迁移的专栏.执行migrations.然而,Heroku上确实存在"isGroup"列,因此该列没有显示为出现是很奇怪的.
有什么建议吗?