{"height":"190","version":"1.0","published":"2013-08-22 06:29:12","type":"rich","image_url":null,"title":"rails \u30e2\u30c7\u30eb\u306e\u5c5e\u6027\u540d\u3092\u5909\u66f4\u3059\u308b","url":"https://hmu29.hatenablog.com/entry/2013/08/22/062912","provider_url":"https://hatena.blog","width":"100%","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhmu29.hatenablog.com%2Fentry%2F2013%2F08%2F22%2F062912\" title=\"rails \u30e2\u30c7\u30eb\u306e\u5c5e\u6027\u540d\u3092\u5909\u66f4\u3059\u308b - \u65e5\u3005\u306e\u8a18\u9332\u3002\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","ruby","rails"],"author_name":"hmu29","blog_title":"\u65e5\u3005\u306e\u8a18\u9332\u3002","blog_url":"https://hmu29.hatenablog.com/","description":"User\u30af\u30e9\u30b9\u306epassword\u3092password_digest\u306b\u5909\u66f4\u3057\u305f\u3044 \u4fee\u6b63\u524d\u306eUser\u30af\u30e9\u30b9 rails g scaffold user name:string password:string \u3053\u306epassword\u3092password_digest\u306b\u5909\u66f4\u3059\u308b \u4fee\u6b63\u65b9\u6cd5 1. \u4fee\u6b63\u7528\u306emigration\u3092\u751f\u6210\u3059\u308b rails g migration RenamePasswordToUser password_digest:string 2. \u751f\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u4fee\u6b63 class RenamePasswordToUser < ActiveRecord::Migration def up # \u65e7\u2026","author_url":"https://blog.hatena.ne.jp/hmu29/"}