Rails 想让数据库根据时间自动更新某个表的某个字段,怎样做更好

dragonsk100 · July 23, 2013 · Last by qinghe replied at July 23, 2013 · 2081 hits

身边的人有的说可以写批处理,还有没有其他方法?

  1. 数据库计划任务 或 操作系统计划任务。
  2. 使用 gems, https://github.com/tobi/delayed_job https://github.com/javan/whenever
You need to Sign in before reply, if you don't have an account, please Sign up first.