<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="53066" data-post-id="53066">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="l00ker" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/l00ker/120/4095_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  l00ker
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Here is the custom type I put together:</p>
<pre><code>defmodule CustomTypes.EctoBigint do

  @behaviour Ecto.Type

  def type, do: :integer

  def cast(string)  when is_binary(string),   do: _to_integer(string)
  def cast(integer) when is_integer(integer), do: {:ok, integer}
  def cast(_),                                do: :error

  def load(integer) when is_integer(integer), do: _to_string(integer)

  def dump(string)  when is_binary(string),   do: _to_integer(string)
  def dump(integer) when is_integer(integer), do: {:ok, integer}
  def dump(_),                                do: :error

  defp _to_integer(string) do
    case Integer.parse(string) do
      {int, _} -&gt; {:ok, int}
      :error   -&gt; :error
    end
  end

  defp _to_string(integer) do
    {:ok, Integer.to_string(integer)}
  end

end
</code></pre>
<p>Use it in your Ecto schema like this:</p>
<pre><code>...
alias CustomTypes.EctoBigint, as: Bigint
...

@primary_key false
@derive {Poison.Encoder, only: [:id, ...]}

schema "myschema" do
  # Tell Ecto to use Bigint as the type and that id the primary_key.
  # `read_after_writes: true` is needed to return the id on insert etc.
  field :id, Bigint, primary_key: true, read_after_writes: true
  ...
  # Tell Ecto to use the Bigint type for any relations as well
  belongs_to :other_schema, OtherSchema, type: Bigint
end
</code></pre>
<p>In the migration:</p>
<pre><code>...
  @table "myschema"

  def up do
    create table(@table, primary_key: false) do
      add :id, :bigint, primary_key: true
      ...
      add :other_schema_id, references(:other_schema, type: :bigint)
    end

    flush()

    execute """
    ALTER TABLE #{prefix()}.#{@table} ALTER COLUMN id SET DEFAULT #{prefix()}.next_id()
    """
  end

  def down do
    drop table(@table)
  end
...
</code></pre>
<p>This is what I worked out and everything seemed to be working fine but I haven’t had time lately to work with it much since my initial testing so YMMV.</p>
<p>Sorry for the delay and I hope I didn’t forget anything as I’m pressed for time due to a recent family illness.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="53066" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-53066" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="53066"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #21"></div>
  </section>
</div>
    <div class="postbit" id="59316" data-post-id="59316">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kelvinst" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kelvinst/120/10173_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kelvinst
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<h1><a name="p-59316-h-120-rc-is-out-1" class="anchor" href="#p-59316-h-120-rc-is-out-1" aria-label="Heading link" rel="nofollow"></a>1.2.0-rc is out!</h1>
<p>Hey guys! Quick update: we got a new release!</p>
<p>Despite not having huge changes or new features, we have incremented the minor version for some reasons. You can check these reasons as well as the changelog here: <a href="https://github.com/ateliware/triplex/releases/tag/v1.2.0-rc.0" class="inline-onebox" rel="noopener nofollow ugc">Release 1.2.0-rc.0 · ateliware/triplex · GitHub</a></p>
<p>But for those who don’t have time do get there, the biggest things that are coming out with this release are:</p>
<ul>
<li>Plug as an optional dependency, so if you don’t use any plug on your app, triplex will not add this dependency on your project.</li>
<li>The support for using triplex on OTP releases, which I really didn’t know we had a problem with, but now, thanks to <a class="mention" href="/u/dustinfarris" rel="nofollow">@dustinfarris</a>, we do not have it anymore! PS: if anyone does need this correction on a <code>1.1</code> patch release, please let me know.</li>
<li>Docs and README improved.</li>
<li>Refactors on plug configs and method return values.</li>
</ul>
<p>Hope you’re liking to use it.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="59316" data-batch-url="/posts/batch_likers">
                        8
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-59316" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="59316"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #22"></div>
  </section>
</div>
    <div class="postbit" id="59854" data-post-id="59854">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Monotom" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Monotom/120/18031_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Monotom
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi <a class="mention" href="/u/kelvinst" rel="nofollow">@kelvinst</a><br>
First of all, thanks for sharing! I am rather new to Elixir and Phoenix and I am currently working on a project where I would need multi tenancy. It seems like your work fits perfectly to my use-case but when implementing it, I was wondering if there is any possibility so I don’t have to pass the tenant to each Repo function from the controller. I am already using your  Subdomain plug, so is there any possibility to directly use the subdomain that is extracted by your plugin as a prefix? Or is this even possible already?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="59854" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-59854" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="59854"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #23"></div>
  </section>
</div>
    <div class="postbit" id="59867" data-post-id="59867">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kelvinst" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kelvinst/120/10173_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kelvinst
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="Monotom" data-post="24" data-topic="7747">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/monotom/48/18031_2.png" class="avatar"> Monotom:</div>
<blockquote>
<p>I was wondering if there is any possibility so I don’t have to pass the tenant to each Repo function from the controller.</p>
</blockquote>
</aside>
<p>There are actually some ways to do that, but most of them are not a good practice at all. When I first started triplex, it was the default behaviour: we were saving the “current_tenant” to the process dict and using it to apply the prefix to all your Repo calls, but then we’ve noticed a lot of problems with that practice and concurrency.</p>
<p>It might seem a little bit unDRY the way it is now, but we decided to be hands-off and explicit over implicit on this. So, if you want, you can manually make exactly what we were doing, but be prepared to have some problems with concurrency anytime.</p>
<aside class="quote no-group" data-username="Monotom" data-post="24" data-topic="7747">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/monotom/48/18031_2.png" class="avatar"> Monotom:</div>
<blockquote>
<p>I am already using your  Subdomain plug, so is there any possibility to directly use the subdomain that is extracted by your plugin as a prefix?</p>
</blockquote>
</aside>
<p>Well, the only thing these plugs do is to extract the tenant from somewhere and to save it to your <code>Plug.Conn</code> assigns. The <a href="https://hexdocs.pm/triplex" rel="noopener nofollow ugc">docs</a> are explaining how they work.</p>
<p>The method <code>Triplex.to_prefix</code> does the job of transforming the tenant on its corresponding prefix.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="59867" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/25">Post #24</a>
	                </div>
	            </div>
              <div id="likers-container-59867" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="59867"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #24"></div>
  </section>
</div>
    <div class="postbit" id="59871" data-post-id="59871">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Monotom" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Monotom/120/18031_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Monotom
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Ok, this sounds reasonable therefore I will use your library in the explicit way. Thanks for your fast answer!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="59871" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/26">Post #25</a>
	                </div>
	            </div>
              <div id="likers-container-59871" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="59871"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #25"></div>
  </section>
</div>
    <div class="postbit" id="67387" data-post-id="67387">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="andre1sk" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/andre1sk/120/1380_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  andre1sk
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Do you support multiple databases or all schemas have to reside in the same database?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="67387" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/27">Post #26</a>
	                </div>
	            </div>
              <div id="likers-container-67387" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="67387"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #26"></div>
  </section>
</div>
    <div class="postbit" id="67388" data-post-id="67388">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="mgiacomini" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mgiacomini/120/11389_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  mgiacomini
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="andre1sk" data-post="27" data-topic="7747">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/andre1sk/48/1380_2.png" class="avatar"> andre1sk:</div>
<blockquote>
<p>schemas have to reside in the same database</p>
</blockquote>
</aside>
<p>I think Triplex will use the repos defined in your app, so you can use multiple databases. I found this in the docs:</p>
<blockquote>
<p>The repository must be set under <code>:ecto_repos</code> in the<br>
current app configuration or given via the <code>-r</code> option.<br>
<a href="https://github.com/ateliware/triplex/blob/master/lib/mix/tasks/triplex.migrate.ex" class="inline-onebox" rel="noopener nofollow ugc">triplex/lib/mix/tasks/triplex.migrate.ex at master · ateliware/triplex · GitHub</a></p>
</blockquote> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="67388" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/28">Post #27</a>
	                </div>
	            </div>
              <div id="likers-container-67388" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="67388"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #27"></div>
  </section>
</div>
    <div class="postbit" id="67647" data-post-id="67647">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kelvinst" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kelvinst/120/10173_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kelvinst
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="andre1sk" data-post="27" data-topic="7747" data-full="true">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/andre1sk/48/1380_2.png" class="avatar"> andre1sk:</div>
<blockquote>
<p>Do you support multiple databases or all schemas have to reside in the same database?</p>
</blockquote>
</aside>
<p>What do you mean by multiple databases? Separate the schemas in multiple separated databases?</p>
<p>If so, you would have to have one <code>Ecto.Repo</code> for each database. And in this case, every method in triplex that executes something on your database receives an optional parameter for the repo at the end. If this parameter is omitted, it will get the repo from what’s configured with <code>config :triplex, repo: MyApp.Repo</code>.</p>
<p>As for migrations, <a class="mention" href="/u/mgiacomini" rel="nofollow">@mgiacomini</a> answer is totally right, we use what’s configured in <code>config MyApp, ecto_repos: [MyApp.Repo]</code>, so migrations run by default on every repo listed in this configuration.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="67647" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/29">Post #28</a>
	                </div>
	            </div>
              <div id="likers-container-67647" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="67647"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #28"></div>
  </section>
</div>
    <div class="postbit" id="67648" data-post-id="67648">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="brightball" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brightball/120/17192_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  brightball
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It would be interesting to test this against the open source Citus. Citus already lists compatibility with a Django and a Rails multitenant plug-in.</p>
<p>If it worked as intended it could provided some more exposure for the plugin as well if they’d list it in their docs.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="67648" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/30">Post #29</a>
	                </div>
	            </div>
              <div id="likers-container-67648" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="67648"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #29"></div>
  </section>
</div>
    <div class="postbit" id="67650" data-post-id="67650">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="andre1sk" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/andre1sk/120/1380_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  andre1sk
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="kelvinst" data-post="29" data-topic="7747">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kelvinst/48/10173_2.png" class="avatar"> kelvinst:</div>
<blockquote>
<p>What do you mean by multiple databases? Separate the schemas in multiple separated databases?</p>
</blockquote>
</aside>
<p>Yep</p>
<aside class="quote no-group" data-username="kelvinst" data-post="29" data-topic="7747">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kelvinst/48/10173_2.png" class="avatar"> kelvinst:</div>
<blockquote>
<p>If so, you would have to have one Ecto.Repo for each database.</p>
</blockquote>
</aside>
<p>Thanx got it</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="67650" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/triplex-a-complete-solution-to-multi-tenancy-with-pg-schemas/7747/31">Post #30</a>
	                </div>
	            </div>
              <div id="likers-container-67650" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="67650"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #30"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/7747/load_more?page=4">Load more posts (13 remaining)</a>
</div></template></turbo-stream>