我已将我的应用程序部署到heroku。一切都很好。当我去rails应用程序,有时,即在某些链接崩溃。错误消息说(我们很抱歉,但出了点问题。检查错误日志我发现:
SELECT "staffs".* FROM "staffs" ORDER BY "staffs"."name" ASC
2015-03-31T06:41:33.006245+00:00 app[web.1]: PG::UndefinedTable: ERROR: relation "staffs" does not exist
class CreateStaffs < ActiveRecord::Migration
def change
create_table :staffs do |t|
t.string :name, null:false
t.string :responsibility
t.timestamps null: false
end
end
end