{"provider_name":"Hatena Blog","blog_url":"https://trench.hatenadiary.org/","type":"rich","published":"2007-04-29 01:56:59","url":"https://trench.hatenadiary.org/entry/20070429/1177865819","blog_title":"Lazy Technology","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftrench.hatenadiary.org%2Fentry%2F20070429%2F1177865819\" title=\" MySQL\u306eMigration\u3067:tinyint\u3092\u6709\u52b9\u306b\u3059\u308b\u65b9\u6cd5 - Lazy Technology\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["rails","activerecord"],"title":" MySQL\u306eMigration\u3067:tinyint\u3092\u6709\u52b9\u306b\u3059\u308b\u65b9\u6cd5","author_name":"trench","description":"DBMS\u306e\u30ab\u30e9\u30e0\u30bf\u30a4\u30d7\u306fMigration\u3067\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u62bd\u8c61\u5316\u3055\u308c\u305f\u30b7\u30f3\u30dc\u30eb\u3092\u30ad\u30fc\u306b\u3057\u305f\u5404\u30a2\u30c0\u30d7\u30bf\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30cf\u30c3\u30b7\u30e5\u304b\u3089\u53d6\u5f97\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u306e\u30cf\u30c3\u30b7\u30e5\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3044\u3082\u306e\u3001\u4f8b\u3048\u3070 add_column(table_name, column_name, \"tinyint\", options = {}) \u3068\u8a00\u3063\u305f\u8a18\u8ff0\u306f\u5bb9\u8d66\u306a\u304fnil\u3068\u306a\u308b\uff08\u305f\u3076\u3093\uff09\u3002 \u8a66\u3057\u3066\u307f\u308b\u3068\u3001\u30cf\u30c3\u30b7\u30e5\u306b\u306a\u3044\u5834\u5408\u306f\u5f15\u6570\u306e\u6587\u5b57\u5217\u304c\u305d\u306e\u307e\u307e\u30ab\u30e9\u30e0\u540d\u3068\u306a\u3063\u305f\u3002 \u5b9f\u969b\u306bAR\u306e\u30bd\u30fc\u30b9\u3092\u898b\u308b\u3068\u305d\u3046\u306a\u3063\u3066\u3044\u308b\u3002>>|ruby| def type_to_sql(type, limit = nil, precision = nil, sca\u2026","version":"1.0","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/trench/","width":"100%","image_url":null,"height":"190"}