ã¤ã³ãã rails ã®ã¢ãã«ã¯èªå㧠id ã¨ããã«ã©ã ãä½ã£ã¦ããã¾ãããããã¯å¸¸ã« INT åã BIGINT åã«ãããã¨ããããçµæ§ããã£ãã®ã§ã¡ã¢ããã 使ã£ã¦ãã database ã¯mysql ã§ãã (postgresql ã ã¨ãã®ç½ ã¯åé¿ã§ããã®ã ãããï¼) tl;dr æ®éã«é å¼µãã¨... db:migrate 㨠db:setup ã®å®è¡çµæãç°ãªã migration ãã¡ã¤ã«ã®å 容ããschema.rb ã«(ä¸é¨)åæ ãããªããã db:migrate 㨠db:setup ã®å®è¡çµæãç°ãªãã¨ã db:rollback ãã§ããªããªãã®ã§ãè¾ããªãããã db:migrate ã db:setup ã©ã¡ããã使ããªããã¨ããéç¨æ¹å¼ããã ã ããé¢åãããã®ã§ããããããã¨ãæèããããªã 解決æ¹æ³ã¯ 2 㤠format_schema = :sql kami
{{#tags}}- {{label}}
{{/tags}}