{"id":287,"date":"2012-08-22T09:13:54","date_gmt":"2012-08-22T09:13:54","guid":{"rendered":"http:\/\/nicholshayes.co.uk\/blog\/?p=287"},"modified":"2013-10-31T15:56:11","modified_gmt":"2013-10-31T15:56:11","slug":"rails-database-user","status":"publish","type":"post","link":"http:\/\/nicholshayes.co.uk\/blog\/?p=287","title":{"rendered":"Rails database user"},"content":{"rendered":"<p>Another project, another database connection via root user with no password. This is so sloppy.<\/p>\n<p>It is so easy to create a project specific user in any database. If this was done more often, I wouldn&#8217;t be for ever changing the password for my root user. I&#8217;d also be able to swap between projects more easily. It would also be easier to maintain a secure set up.<\/p>\n<p>So please, don&#8217;t use root as the database user on your next Rails project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another project, another database connection via root user with no password. This is so sloppy. It is so easy to create a project specific user in any database. If this was done more often, I wouldn&#8217;t be for ever changing &hellip; <a href=\"http:\/\/nicholshayes.co.uk\/blog\/?p=287\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/287"}],"collection":[{"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=287"}],"version-history":[{"count":3,"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":466,"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/287\/revisions\/466"}],"wp:attachment":[{"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nicholshayes.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}