{"width":"100%","provider_url":"https://hatena.blog","author_name":"K_Koh","height":"190","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-koh.hatenablog.com%2Fentry%2F2020%2F05%2F29%2F174420\" title=\"rails db:migrate \u3092\u3059\u308b\u3068\u51fa\u308bPG::DuplicateColumn: ERROR \u306e\u5bfe\u51e6 - Just do IT\" 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":"Just do IT","provider_name":"Hatena Blog","blog_url":"https://k-koh.hatenablog.com/","categories":["Ruby on Rails"],"type":"rich","url":"https://k-koh.hatenablog.com/entry/2020/05/29/174420","published":"2020-05-29 17:44:20","description":"\u8d77\u304d\u305f\u30a8\u30e9\u30fc \u30c6\u30fc\u30d6\u30eb\u3092\u3044\u3058\u3063\u3066\u3044\u3066\u3044\u308d\u3044\u308d\u30df\u30b9\u3063\u305f\u306e\u3067\u3001git reset --hard\u3092\u3057\u3066\u518d\u5ea6rails db:migrate\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u3001\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002 PG::DuplicateColumn: ERROR: column \"user_id\" of relation \"pages\" already exists \u300cpages\u30c6\u30fc\u30d6\u30eb\u306buser_id\u30ab\u30e9\u30e0\u3092\u52a0\u3048\u3088\u3046\u3068\u3057\u3066\u308b\u3051\u3069\u3001\u3082\u3046\u3059\u3067\u306b\u5b58\u5728\u3057\u3066\u308b\u3088\u301c\u300d\u3068\u3044\u3046\u610f\u5473\u3002\u540c\u3058\u540d\u524d\u306e\u30ab\u30e9\u30e0\u3092\u540c\u4e00\u306e\u30c6\u30fc\u30d6\u30eb\u306b2\u3064\u4ee5\u4e0a\u4f5c\u308c\u307e\u305b\u3093\u3002 \u539f\u56e0 \u4ee5\u4e0b\u3001\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u308b\u307e\u3067\u306b\u3084\u3063\u305f\u3053\u3068\u3002 \u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u308a\u3001db:migrate\u3057\u305f \u30df\u30b9\u2026","title":"rails db:migrate \u3092\u3059\u308b\u3068\u51fa\u308bPG::DuplicateColumn: ERROR \u306e\u5bfe\u51e6","version":"1.0","author_url":"https://blog.hatena.ne.jp/K_Koh/"}