在创建新的数据库后运行迁移时出现错误。 # Include default devise modules.select{ |u| u if u.full_name.parameterize == fullname}通过作用域find_by_fullname获取时出错,错误为PG::UndefinedTable: ERROR: relation "users" does not exis
问题:我运行的任何rails或rake命令都会生成此错误。::UndefinedTable: ERROR: relation "customers" does not exist WHERE c.oid = a.attcollation AND t.oid = a.atttypid AND a.attcollation <::UndefinedTable: ERR
我正在尝试将我的迁移迁移到Rails 6中,但是我遇到了这个错误: == 20200610041443 AddDeviseToUsers: migrating ====================StandardError: An error has occurred, this and all later migrations canceled:
bin/rails:3:in `load'
bin/rails:3:
偶尔,我们在使用PG::UndefinedTable时得到ActiveRecord错误。关联表名是某种程度上的损坏,我经常看到Cancelled被附加到表名的末尾。例如:
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "fooCancell" does not existActiveRecord::StatementInvalid: PG::UndefinedTable