Railsã®Migrationã®åºæ¬çãªãã¨ãããã«ã©ã 追å /åé¤ãã¤ã³ããã¯ã¹è¿½å ãNULLå¶ç´ãã«ã©ã åå¤æ´ãªã©ã®ã¬ã·ãéãã¾ã¨ãã¾ããã åä½ç¢ºèª Rails 4.1 ç®æ¬¡ 1. Migrationã®åºç¤ 1.1. migrationãã¡ã¤ã«ã®ä½æ 1.2. ãã¤ã°ã¬ã¼ãã®å®æ½ rake db:migrateã³ãã³ã 1.3. ãã¤ã°ã¬ã¼ãã®é©ç¨ç¶æ³ç¢ºèª rake db:migrate:statusã³ãã³ã 1.4. ãã¼ã¿ã®æå ¥ rake db:seedã³ãã³ã 1.5. ãã¤ã°ã¬ã¼ã·ã§ã³ã§ä½¿ãããã¼ã¿åä¸è¦§ 2. Migrationã®ã¬ã·ãé 2.1. ã«ã©ã ã®è¿½å ï¼add_columnï¼ 2.2. ã«ã©ã ã®åé¤ï¼remove_columnï¼ 2.3. ãã¼ã¿åã®å¤æ´ï¼change_columnï¼ 2.4. ã¤ã³ããã¯ã¹ãã¦ãã¼ã¯å¶ç´ã®è¿½å /åé¤ï¼add_index/remove
{{#tags}}- {{label}}
{{/tags}}