Rails㧠$ rails g model Hoge fuga:references $ rake db:migrate $ rm -rf db/migrate ã¿ãããªæãã§ã¢ãã«æ°è¦ä½ææã ãä¸æ¦ãã¤ã°ã¬ã¼ã·ã§ã³ãã¡ã¤ã«ä½ã£ã¦ããRidgepoleã®Schemafileã«dumpãã¦â¦ ã¿ãããªéç¨ãã¦ããè©°ã¾ã£ãï¼ ActiveRecordã®referencesã¯add_foreign_key "hoge", "fugas"ã¿ãããªæãã§ååãè¨å®ããªãã®ã§ï¼ãã®ã¾ã¾dumpããã¨Schemafileã«ãååãªãã®å¤é¨ãã¼ãåºåãããï¼ãããDBã«applyãããã¨ãã㨠Apply `db/schemas/Schemafile` [ERROR] Foreign key name in `hoge` is undefined rake aborted! Command failed
{{#tags}}- {{label}}
{{/tags}}