由于Postgresql错误

时间:2016-02-23 22:21:22

标签: ruby-on-rails ruby postgresql heroku

当我部署到Heroku时,我的Ruby on Rails构建的Archives存在问题。一切都在我的本地服务器上正常工作但是当我在Heroku上运行应用程序时,我加载页面时出现问题。

Heroku日志显示了这个

PG::UndefinedFunction: ERROR:  function strftime(unknown, timestamp without time zone) does not exist

1 个答案:

答案 0 :(得分:1)

也许你忘了在heroku上运行迁移。做就是了 var state = new RollingList(model.StateDepth); // Tracks last n items and drops older ones. (Basically an array and an index that wraps around var tokens = tokeniser.Tokenise(contents); // Iterator foreach (var token in tokens) { var stateText = StateToString(ref state); var match = model.States.Where(x => x.Condition == stateText).FirstOrDefault(); // ... update the match as appropriate for the token }