{"image_url":null,"provider_url":"https://hatena.blog","url":"https://gutch.hatenablog.com/entry/20120222/1329890161","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgutch.hatenablog.com%2Fentry%2F20120222%2F1329890161\" title=\"migration\u3067\u8907\u6570\u30ab\u30e9\u30e0\u306eindex\u3092\u751f\u6210\u3059\u308b\u6642\u306e\u6ce8\u610f\u4e8b\u9805 - \u30de\u30aa\u306e\u5f92\u7136\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2012-02-22 14:56:01","description":"Ruby on Rails\u3067\u306fmigration\u30d5\u30a1\u30a4\u30eb\u306b add_index \u30c6\u30fc\u30d6\u30eb\u540d, :\u30ab\u30e9\u30e0\u540d, :unique => true \u3068\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u30c6\u30fc\u30d6\u30eb\u306b\u30e6\u30cb\u30fc\u30af\u306aindex\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002 \u305d\u3057\u3066\u3001index\u306b\u8907\u6570\u306e\u30ab\u30e9\u30e0\u3092\u8a2d\u5b9a\u3059\u308b\u969b\u306f add_index \u30c6\u30fc\u30d6\u30eb\u540d, [:\u30ab\u30e9\u30e0\u540d1, :\u30ab\u30e9\u30e0\u540d2, \u30fb\u30fb\u30fb], :unique => true \u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002 \u306a\u306e\u3067\u3001\u610f\u6c17\u63da\u3005\u3068index\u3092\u4f5c\u6210\u3057\u3066\u3044\u305f\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3002 Index name 'xxxxxxxxxxxxxxxxxxx' on table '\u30c6\u30fc\u30d6\u30eb\u540d' is too long;\u2026","blog_url":"https://gutch.hatenablog.com/","categories":["Ruby on Rails"],"version":"1.0","height":"190","provider_name":"Hatena Blog","width":"100%","type":"rich","author_name":"gutch01","author_url":"https://blog.hatena.ne.jp/gutch01/","blog_title":"\u30de\u30aa\u306e\u5f92\u7136\u65e5\u8a18","title":"migration\u3067\u8907\u6570\u30ab\u30e9\u30e0\u306eindex\u3092\u751f\u6210\u3059\u308b\u6642\u306e\u6ce8\u610f\u4e8b\u9805"}