Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个 Rake 任务:
1) 检查表行 2) 中的列,如果其值为 false,则发送包含行信息的电子邮件,3) 然后将值从 false 更改为 true。
有谁知道解决这个问题的最佳方法?
将代码写入
将此代码放入 rake 任务并启动此任务后