On Fri, Oct 12, 2018 at 1:34 PM, Stephanie_Snowflake
<spicychemist@gmail.com> wrote:
> Have not found in settings for shipping, since it just a status. I would
> like it to automatic archive if it was shipped after 3 yeaars
Is this a different question? It sounds like you just want a task to run
nightly via cron that sweeps the DB for products with a shipped_date
over 3 years old and "archives" that product.
Depending on your requirements using a rake task or `rails runner`
should handle it.
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBMAcQ6qcgLTHweKBAmESwsCerq9CwKBofbfyUngphijg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment