You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a Rails 5.2.0.rc1 app with apartment installed and an excluded model Plan. Try to create plans in seeds.rb.
Expected behavior
Plans are created in the public schema.
Actual behavior
ERROR: relation "public.plans" does not exist
System configuration
Database: (Tell us what database and its version you use.)
Postgres with use_schemas. Using docker and codeship. Image is postgres:10-alpine.
Apartment version:
2.1.0. I'm using a fork to get around issue db:create fails #518.
Apartment config (in config/initializers/apartment.rb or so):
use_schemas: (true or false)
true
# Apartment Configuration
Apartment.configure do |config|
# Add any models that you do not want to be multi-tenanted, but remain in the global (public) namespace.
# A typical example would be a Customer or Tenant model that stores each Tenant's information.
config.excluded_models = %w(
Account
User
AccountsUser
Plan
)
config.use_schemas = true
end
Rails.application.config.middleware.use Apartment::Elevators::Subdomain
Steps to reproduce
Have a Rails 5.2.0.rc1 app with apartment installed and an excluded model Plan. Try to create plans in seeds.rb.
Expected behavior
Plans are created in the public schema.
Actual behavior
ERROR: relation "public.plans" does not exist
System configuration
Database: (Tell us what database and its version you use.)
Postgres with
use_schemas
. Using docker and codeship. Image is postgres:10-alpine.Apartment version:
2.1.0. I'm using a fork to get around issue db:create fails #518.
Apartment config (in
config/initializers/apartment.rb
or so):use_schemas
: (true
orfalse
)true
Rails (or ActiveRecord) version:
5.2.0.rc1
Ruby version:
2.5
Full app is here:
https://github.com/archonic/limestone-accounts
This is my seeds.rb:
Backtrace:
The text was updated successfully, but these errors were encountered: