{"title":"Rails\u306eDB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u30ab\u30e9\u30e0\u3092\u5909\u66f4\u3059\u308b","blog_title":"\u3074\u3088\u30ed\u30b0","description":"\u3042\u3068\u304b\u3089\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u5909\u3048\u305f\u308a\u3001Nullable\u3092\u3084\u3081\u305f\u308a\u3063\u3066\u3068\u304d\u306e\u3084\u308a\u304b\u305f\u3092\u5fd8\u308c\u304c\u3061\u306a\u306e\u3067\u30e1\u30e2\u3002 class MigrationName < ActiveRecord::Migration def change change_column :models, :column_name, :integer, null:false, default:0 end end \u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002 change_column :\u30e2\u30c7\u30eb\u8907\u6570\u5f62, :\u5c5e\u6027, :\u578b, {\u30aa\u30d7\u30b7\u30e7\u30f3}","categories":["Rails","Migration","Tips"],"url":"https://xoyip.hatenablog.com/entry/2014/05/17/200000","height":"190","width":"100%","published":"2014-05-17 20:00:00","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2014%2F05%2F17%2F200000\" title=\"Rails\u306eDB\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u30ab\u30e9\u30e0\u3092\u5909\u66f4\u3059\u308b - \u3074\u3088\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","image_url":null,"author_name":"xoyip","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/xoyip/","blog_url":"https://xoyip.hatenablog.com/","provider_url":"https://hatena.blog"}