ããã«ã¡ã¯ãæ¥æ¬ã§ã¯ãã£ããç§ã®ç©ºãè¿ã¥ãã¦ãã¾ãããå人çã«å¤ã¯æããè¦æã§ãã¾ã好ãã§ã¯ãªãã®ã§ãããçµãã£ã¦ãã¾ãã¨ãªãã¨æ¯å¹´ã©ããå¯ããæ°æã¡ã«ãªãã¾ãã ä¸æ¹ã§ãç§ã¯ã飯ãç¾å³ããã®ã§é£ã¹ãäºã好ããªåã«ã¨ã£ã¦ã¯ä¸çªå¥½ããªå£ç¯ã§ããããçµæ§å¿ãè¸ã£ã¦ãã¾ããç¬ ãã¦ãåç½®ãã¯ç½®ãã¨ãã¦ä»åã¯è¡¨é¡ã®éããã¨ããRails 5.2ããã¸ã§ã¯ããRails 6ã«ã¢ããã°ã¬ã¼ãããéã«ãActiveRecordã®scopingã®ä»æ§å¤æ´ãè¸ãã§ãã¾ã£ãã®ã§ãã®å¯¾å¦æ³ããç´¹ä»ãã¾ãã ããããscopingã¨ã¯ ActiveRecord::Relation ã®æ©è½ã§ãå¼æ°ã«ãããã¯ãåãåãããã®ä¸ã§ã¯ãå®è¡æã«é©ç¨ããã¦ããã¹ã³ã¼ããå ¨ã¯ã¨ãªã§ããã©ã«ãã§é©ç¨ãããã¨è¨ãç©ã«ãªãã¾ãã ä¾ã¨ãã¦ãdeleted_at (timestamp, nullable) ã¨è¨ãattributeã
{{#tags}}- {{label}}
{{/tags}}