apartment-gem Questions

1

I need View SQL and Stored Procedure in my Rails app so I have to change from schema.rb to structure.sql. This is my config in config/application.rb config.active_record.schema_format = :sql but...
Ellita asked 8/5, 2017 at 2:1

2

Solved

I’ve setup a Rails 5 application with Apartment (1.2.0) and Devise (4.2.0). Due to some DDNS issues there is the constraint that the app is only reachable under app.myapp.com (note the subdomain ap...
Weinberger asked 26/2, 2017 at 11:14

2

I am using the apartment gem for multi-tenancy. Everything works fine besides urls in my emails. So for each email which is sent from any requests and from background jobs are using the default_ur...
Suffruticose asked 23/11, 2015 at 14:18

2

Solved

The problem I have a rails application that runs a few hundred sidekiq background processes. They all connect to a PostgreSQL database which is not exactly happy about providing 250 connections - i...

1

I'm using the Apartment gem to build a multi-tenant app (each tenant lives in a different Postgres schema). What's the best way in Rails to define custom CSS overrides for each tenant?

1

Solved

I need to drop all the schemas in my database except public, information_schema and those LIKE 'pg_%'. Here's what I've found: (this variant doesn't seem to work) CREATE OR REPLACE FUNCTION drop...
Germanism asked 25/7, 2015 at 13:59

0

I am building a multi tenant app in Rails using the Apartment Gem and Postgresql 9.4.1. I use Minitest and dont' know RSpec. How can I setup Minitest fixtures to put some fixtures/data in the pub...
Whaleboat asked 12/6, 2015 at 1:52

1

Solved

I use Apartment gem in Rails 4 to support multi-tenancy in Postgres 9.3.3 on Heroku. An error is occurred when Apartment gem creates a new tenant. Deep investigation showed that a schema was crea...

1

I am using this apartment a ruby gem. I have add this in application.rb file: config.middleware.use 'Apartment::Elevators::Subdomain' When i try hit this in browser url 'test.domain.local:3000'...
Albertson asked 28/11, 2014 at 12:12

1

Solved

How can I find out which tenant (schema) is the current one when Apartment was initialized according to request
1

© 2022 - 2024 — McMap. All rights reserved.