DOGLIFEBETA!
Garçon Fluffy Brutus
“Like Facebook, but for dogs”
Slide 15
Slide 15 text
Multitenancy
with Rails?
Slide 16
Slide 16 text
No content
Slide 17
Slide 17 text
Is it…
✔ well maintained
✔ well documented
✔ clean code
Slide 18
Slide 18 text
acts_as_tenant
✔ well documented
Slide 19
Slide 19 text
acts_as_tenant
✔ well maintained
✔ 140 commits, 19 contributors, low issue count
✔ CI on Travis
Slide 20
Slide 20 text
acts_as_tenant
✔ clean code
Slide 21
Slide 21 text
acts_as_tenant
Slide 22
Slide 22 text
RequestStore.store
Slide 23
Slide 23 text
No content
Slide 24
Slide 24 text
Thread.current
Thread.current
Slide 25
Slide 25 text
apartment
✔ well documented
✔ well maintained
✔ clean code
Slide 26
Slide 26 text
“If you are using PostgreSQL, Apartment
by default will set up a new schema and
migrate into there.”
Slide 27
Slide 27 text
“If you are using
PostgreSQL, Apartment
by default will set up a new
schema and
migrate into there.”
Slide 28
Slide 28 text
No content
Slide 29
Slide 29 text
“A database contains one or more
named schemas, which in turn
contain tables.”
“There are several reasons why one
might want to use schemas:
* To allow many users to use one
database without interfering with
each other.”
Slide 30
Slide 30 text
“To allow many users
to use one database
without interfering
with each other.”
Slide 31
Slide 31 text
ryanbigg=# SHOW search_path;
search_path
----------------
"$user",public
(1 row)
"$user",public