<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yokoyantech</author_name>
  <author_url>https://blog.hatena.ne.jp/yokoyantech/</author_url>
  <blog_title>紙一重の積み重ね</blog_title>
  <blog_url>https://www.yokoyan.net/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>PostgreSQL</anon>
  </categories>
  <description>やりたいこと URLにidを使っていると、値を変更して他のユーザの情報が見れたり、データ数の推測ができてしまう。これを避けたい。 https:example.com/user/1/hoge ではなく、 https:example.com/user/76a049b8-d280-49e8-917f-d7b28107c660/hoge というようなuuidを使いたい。 動作環境 AWS RDS for PostgreSQL10 Rails5.2 事前準備 RDSにてpgcryptoを生成する CREATE EXTENSION pgcrypto; 以下のようなストアドができればOK 実装 applic…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yokoyan.net%2Fentry%2F2019%2F01%2F21%2F181500&quot; title=&quot;【Rails5 + Postgres10】pgcryptoを使ってuuidを実装する方法 - 紙一重の積み重ね&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yokoyantech/20190121/20190121102136.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-21 18:15:00</published>
  <title>【Rails5 + Postgres10】pgcryptoを使ってuuidを実装する方法</title>
  <type>rich</type>
  <url>https://www.yokoyan.net/entry/2019/01/21/181500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
