SmartHRã§ã¯Ruby on Railsãå¤ãã®ãµã¼ãã¹ã§æ¡ç¨ãã¦ãã¾ãã ãã®ãããä¸è¶³ãã¦ããæ©è½ãä¸å ·åãããã°rails/railsã¸ã³ã³ããªãã¥ã¼ããããã¨ãããã¾ãã ä»æ¥ã¯ãæ¥ã ã®ã½ã¤ã½ã¤ã¨ããã³ã³ããªãã¥ã¼ãã®ä¸ãããRails 7.1ã«è¿½å ããUNIQUEå¶ç´ã«ã¤ãã¦ç´¹ä»ãã¾ãã unique_constraint(UNIQUEå¶ç´) UNIQUEå¶ç´(unique_constraint)ã¯Rails7.1(å·çæã¯æªãªãªã¼ã¹)ããå©ç¨å¯è½ã«ãªãActiveRecordã®æ°æ©è½ã§ãã rails/rails#46192 PostgreSQLã§ããå©ç¨ã§ãã¾ããããä¸è¨ã®ããã«unique_constraintã§é 延å¯è½ãªUNIQUEå¶ç´ãå®ç¾©ã§ããããã«ãªãã¾ããã # create_tableå ã§ä½¿ãå ´å create_table :items do |t| t.i
{{#tags}}- {{label}}
{{/tags}}