偶尔,我们在使用PG::UndefinedTable时得到ActiveRecord错误。关联表名是某种程度上的损坏,我经常看到Cancelled被附加到表名的末尾。例如:
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "fooCancell" does not existActiveRecord::
我刚刚将我的应用程序部署到heroku,我在heroku上遇到了一个问题,我没有在本地访问它,每当您导航到用户/新用户时,当它在本地完全正常运行时,您就会发现错误“出了问题”。这是heroku的原木
2017-09-08T20:04:15.359192+00:00 app[web.1]: I, [2017-09-08T20:04:15.359081 #4] INFO --08T20:04:15.378874 #4] INFO -- : [5dd58b3d-a6c1-4a05-a4f8-07a1965f1e05] Complet
我正在尝试部署到Heroku,我得到了迁移错误,所以我按照https://devcenter.heroku.com/articles/sqlite3上的说明切换到postgres,但现在我在运行rails我的迁移: class CreateRooms < ActiveRecord::Migration[5.2] create_table :rooms do |t|, through: :registrations
end 运行rails db:migrate时出
使用Rails 3.2.18和Postgres,我为几个表创建了一个视图,以最小化ActiveRecord加载的数据。在应用程序中,所有东西似乎都运行正常,但当我尝试运行Rspec时,我得到: PG::UndefinedTable: ERROR: relation "properties_view" does not exist
(其中'properties_