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.
我是 Ruby-on-rails 的新手,需要能够构建一个 Rake 文件,该文件将连接到公司数据源,然后使用该数据更新 SQLite3 中的表。
那可能吗?我应该使用 rake 文件吗?
我最终希望使用计时器每天运行更新。
确实有可能(只要您有权建立两个连接)。它看起来不像是 ruby on rails 项目的任务。一个简单的 ruby 脚本就可以完成这项工作,您可以使用 cron 或任何其他调度程序工具(取决于您使用的平台)对其进行调度。