{"author_url":"https://blog.hatena.ne.jp/magicalhat/","author_name":"magicalhat","version":"1.0","description":"\u3046\u30fc\u3093\u3001float \u578b\u3067\u4f5c\u3063\u3066 ALTER TABLE \u3059\u308c\u3070\u3044\u3044\u306e\u304b\u306a\u3041\uff1f \u3042\u308c\u3001\u3067\u3082\u305d\u3046\u3057\u305f\u3089\u500d\u7cbe\u5ea6\u578b\u306b\u306a\u3063\u3061\u3083\u3063\u305f\u3088\uff1f \u3053\u3093\u306a\u3068\u304d\u306f\u3001ActiveRecord::ConnectionAdapters::PostgreSQLAdapter \u3042\u305f\u308a\u3092\u898b\u3066\u307f\u3088\u3046\uff01 \u305d\u3093\u306a\u611f\u3058\u3067\u898b\u3066\u307f\u308b\u3068\u3001decimal \u3068\u3044\u3046\u578b\u3092\u767a\u898b\u3002 \u3068\u3086\u30fc\u308f\u3051\u3067 create_table :money do |t| t.decimal :dollar, :precision => 7, :scale => 2 end \u3067\u3001Numeric \u578b\u306e\u30ab\u30e9\u30e0\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002 \u308f\u30fc\u3044\u3002\u3068\u601d\u3063\u305f\u3089\u3001 PostgreSQL + \u2026","height":"190","url":"https://hatyuki.hatenablog.jp/entry/20100121/1264044099","type":"rich","published":"2010-01-21 12:21:39","title":" ActiveRecord \u3067 Numeric \u578b\u3092\u4f7f\u3044\u305f\u3044\uff01","provider_url":"https://hatena.blog","categories":["Ruby","PostgreSQL"],"width":"100%","blog_title":"\u306f\u3061\u3085\u306b\u3063\u304d","provider_name":"Hatena Blog","blog_url":"https://hatyuki.hatenablog.jp/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhatyuki.hatenablog.jp%2Fentry%2F20100121%2F1264044099\" title=\" ActiveRecord \u3067 Numeric \u578b\u3092\u4f7f\u3044\u305f\u3044\uff01 - \u306f\u3061\u3085\u306b\u3063\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}