<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>griefworker</author_name>
  <author_url>https://blog.hatena.ne.jp/griefworker/</author_url>
  <blog_title>present</blog_title>
  <blog_url>https://tnakamura.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>Heroku</anon>
  </categories>
  <description>はじめに Web アプリでマルチテナントをやる場合、 すべてのテーブルに tenant_id を追加してデータを分けるのではなく、 テナントごとにデータベースを分けたい。 データベースを分けておけば、バグで他のテナントのデータまで変更してしまう可能性を減らせる。 データベースを分けたマルチテナントをサポートする、 『Apartment』という gem を使った記事を以前書いた。 Rails + Apartment でマルチテナントな Web サービスを作る - present Heroku 上での運営を考えているので、 Heroku 上でもテナントごとにデータベースを分けたマルチテナントが可能…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F2014%2F07%2F28%2F113000&quot; title=&quot;Heroku でマルチテナントな Rails アプリを実現する - present&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>http://cdn-ak.f.st-hatena.com/images/fotolife/g/griefworker/20140725/20140725215141.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-07-28 11:30:00</published>
  <title>Heroku でマルチテナントな Rails アプリを実現する</title>
  <type>rich</type>
  <url>https://tnakamura.hatenablog.com/entry/2014/07/28/113000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
