注意:finishDate 是 Events 表中的一个字段
此查询在开发中运行良好
def reminders
@events = @user.events.find(:all, :conditions=> ['finishDate >= ?', Time.now])
end
但在生产中抛出此错误
ActiveRecord::StatementInvalid (PG::Error: ERROR: column "finishdate" does not exist
LINE 1: ...vent_id" WHERE "events_users"."user_id" = 13 AND (finishDate...
^
英雄控制台
>> Event.last.finishDate
=> Tue, 10 Apr 2012 19:05:00 UTC +00:00
我错过了什么?提前致谢!