{"title":"DB\u63a5\u7d9a\u3092\u4f34\u308f\u306a\u3044Rails\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u88c5\u3059\u308b","blog_url":"https://shinespark.hatenablog.com/","description":"\u3042\u3089\u3059\u3058 Rails \u3067DB\u304c\u30b3\u30b1\u3066\u3044\u305f\u3068\u3057\u3066\u3082\u3001\u5358\u4f53\u3067\u306f\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3067\u78ba\u8a8d\u3057\u305f\u304b\u3063\u305f\u3002 Controller \u3067\u306e\u5b9f\u88c5\u306e\u5834\u5408 \u3053\u3093\u306a\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u66f8\u3044\u305f\u3068\u3059\u308b\u3002 class HealthcheckController < ApplicationController def index User.first render plain: 'Still Alive' rescue => e render plain: 'Not Still Alive', status: :internal_server_error end end \u304c\u3001DB\u306b\u63a5\u7d9a\u3067\u304d\u306a\u3044\u6642\u306b\u306f\u3001\u3053\u308c\u4ee5\u524d\u306eMyS\u2026","published":"2017-08-25 08:00:00","categories":["Rails","Ruby"],"type":"rich","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/ShineSpark/","blog_title":"\u4eba\u751f\u30b7\u30fc\u30b1\u30f3\u30b9\u30d6\u30ec\u30a4\u30af","height":"190","author_name":"ShineSpark","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinespark.hatenablog.com%2Fentry%2F2017%2F08%2F25%2F080000\" title=\"DB\u63a5\u7d9a\u3092\u4f34\u308f\u306a\u3044Rails\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u88c5\u3059\u308b - \u4eba\u751f\u30b7\u30fc\u30b1\u30f3\u30b9\u30d6\u30ec\u30a4\u30af\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/S/ShineSpark/20170822/20170822010607.png","url":"https://shinespark.hatenablog.com/entry/2017/08/25/080000","width":"100%","version":"1.0"}