ã¦ã¼ã¶ç»é²ã§ä»®ç»é²ãæ¬ç»é²ã®ã¹ããããè¸ãã±ã¼ã¹ã§ã¯ä»®ç»é²ã§æ¾ç½®ãããã¨ãã¼ã¿ãã¼ã¹ã«ã´ããæ®ãã¾ãã®ã§ããããå®æçã«åé¤ãã¾ãã ã¯ãªã¼ã³ã¢ããã¡ã½ãããã¢ãã«ã«è¿½å Userã¢ãã«ã«ï¼ï¼æé以ä¸çµã£ã¦ãã¦ãstatus ãfalseã®ã¬ã³ã¼ããåé¤ããã¡ã½ããã追å ãã¾ãã def self.cleanup User.delete_all(["status = ? and update_at < ?",false,1.days.ago]); end ãã㧠status = false ã¨ç´æ¥è¨è¼ããã¨sqlite3ã§ã¯ã¨ã©ã¼ã«ãªãã¾ããsqlite3ã§ã¯falseã¯'f'ã¨ãã¦ä¿åãã¦ããã®ã§ status = 'f' ã¨æ¸ãã°ã¨ã©ã¼ã«ãªããªãã®ã§ãããããã§ã¯ã»ãã®DBã¨ã®äºææ§ãã¨ãã¾ããããã®ããã«ãã¬ã¼ã¹ãã«ããã¤ããã¨éããå¸åãã¦ãããããã§ããscript/runne
{{#tags}}- {{label}}
{{/tags}}