{"height":"190","description":"SQLite3\u3067\u306f\u3001\u70b9\u6570\u3092\u964d\u9806\u3067\u4e26\u3079\u308b\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b9\u30b3\u30fc\u30d7\u3067\u3001null\u304c\u672b\u5c3e\u306b\u6765\u3066\u3044\u305f\u304c\u3001PostgreSQL\u3060\u3068\u3001null\u304c\u5148\u982d\u306b\u6765\u3066\u3057\u307e\u3063\u305f\u3002 scope :order_score_desc, -> { order(score: :desc) } \u305d\u3053\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3001(\u5217\u540d is null)\u3092\u8ffd\u52a0\u3057\u3066\u3042\u3052\u308b\u3068\u3001PostgreSQL\u3067\u3082null\u304c\u672b\u5c3e\u306b\u6765\u305f\u3002 scope :order_score_desc, -> { order(\"(score is null)\", score: :desc) } \u3082\u3061\u308d\u3093\u3001SQLite3\u3067\u3082\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u305f\u3002 \u53c2\u8003\uff1a WEB\u958b\u767a\u5099\u5fd8\u9332 PostgreSQL\u2026","type":"rich","author_url":"https://blog.hatena.ne.jp/ayaketan/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","title":"Rails4 PostgreSQL\u3067\u6570\u5024\u3092\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u305f\u3089null\u304c\u5148\u982d\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f","published":"2014-08-06 11:30:00","blog_url":"https://ayaketan.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fayaketan.hatenablog.com%2Fentry%2F2014%2F08%2F06%2F113000\" title=\"Rails4 PostgreSQL\u3067\u6570\u5024\u3092\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u305f\u3089null\u304c\u5148\u982d\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f - ayaketan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u52c9\u5f37\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>","blog_title":"ayaketan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u52c9\u5f37\u65e5\u8a18","version":"1.0","width":"100%","author_name":"ayaketan","url":"https://ayaketan.hatenablog.com/entry/2014/08/06/113000","categories":["Ruby"],"image_url":null}