åå ã¨ããããåé¤ãã©ã° ç®ç ã¨ã³ãã¦ã¼ã¶ããè¦ãã¨ãã¼ã¿ããªããã¨ã«ããããã©ãå®éã®ãã¼ã¿ã¯æ¶ããããªã åé¤ãããã¼ã¿ãæ¤ç´¢ããã ãã¼ã¿ãæ¶ããã«ãã°ã«æ®ããã 誤ã£ãæä½ããªãã£ããã¨ã«ããããç´ãã«å
ã«æ»ããã ã¢ã³ããã¿ã¼ã³ ä¾ãã°is_deletedã¨ããã«ã©ã ãtrueã®å ´åã¯åé¤ããã¦ããã¨ã¿ãªã ã¡ãªãã updateæãªããã¼ã¿ãç°¡åã«å
ã«æ»ããæ°ãããã®ã§ãªãã¨ãªãå®å¿ -> 俺ã®updateæã§ãªãã¨ããªãï¼ï¼ èµ·ããã㨠SELECTããã¨ãã«ã¯å¸¸ã«WHEREå¥ã追å ã§å¿
è¦ã«ãªããã³ã¼ããåé¤ãã©ã°ã ããã«ãªã å
¨å¡ãã¼ãã«è¨è¨ã«ç²¾éãã¦ãããã§ã¯ãªãã®ã§ããã¼ãã«ã«ãã£ã¦åé¤ãã©ã°ã®æç¡ããã£ããããå ´åãèªèã®é½é½¬ãçã¿ããã ä¾ãã°rubyã§default_scopeãç¨ãã¦ããããã¨ããã£ã¦ã³ã¼ãã¬ãã«ã§ããã©ã«ããå¤ããããã°ãããããåºã¦ãã
{{#tags}}- {{label}}
{{/tags}}