{"provider_url":"https://hatena.blog","categories":["ruby","rails","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"width":"100%","author_url":"https://blog.hatena.ne.jp/tabilike/","version":"1.0","title":"rails4\u304b\u3089rails5\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u8cbc\u308a\u65b9\u304c\u5909\u308f\u3063\u305f\uff1f","description":"index\u8cbc\u308a\u305f\u3044\u3051\u3069rails5\u306b\u306a\u3063\u305f\u3089add_index\u3067\u8cbc\u308c\u306a\u304f\u3066\u6238\u60d1\u3044\u307e\u3057\u305f\uff57 rails4\u306a\u3089\u4f5c\u3089\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u306b\u95a2\u3057\u3066\u3053\u3093\u306a\u611f\u3058 class AddIndexToTestTables < ActiveRecord::Migration def change add_index :test_tables, :name add_index :test_tables, :name2 end end rails5\u306b\u306a\u308b\u3068create table\u6642\u306b\u3053\u3093\u306a\u6f22\u5b57\u3067\u4f5c\u308b\u3089\u3057\u3044\u3002 class CreateTestTables < ActiveRecord::Migration[5.0] def c\u2026","published":"2017-10-24 11:33:36","author_name":"tabilike","blog_url":"https://tabilike.hatenablog.com/","blog_title":"\u65c5\u597d\u304d\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30e1\u30e2","type":"rich","provider_name":"Hatena Blog","image_url":null,"url":"https://tabilike.hatenablog.com/entry/2017/10/24/113336","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftabilike.hatenablog.com%2Fentry%2F2017%2F10%2F24%2F113336\" title=\"rails4\u304b\u3089rails5\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u8cbc\u308a\u65b9\u304c\u5909\u308f\u3063\u305f\uff1f - \u65c5\u597d\u304d\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}