-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible with Postgresql 11.1 #571
Comments
Same issue with Rails 5.2.2 and Ruby 2.5.3 |
It seems like newer versions of pg_dump will always include I ran into something similar while working on an external application for provisioning tenants where create schema command would be included for non public schemas, I ended up replacing the create schema calls in new_sql.gsub!(/CREATE SCHEMA #{@source_schema}\;/, '') I could be worth adding apartment/lib/apartment/adapters/postgresql_adapter.rb Lines 108 to 113 in a4332c3
|
@tappleby thanks for your feedback, I just used the latter approach for a lokal money patch. |
does 927ba21 wich is included in v2.2.1 fixes this finally? |
Steps to reproduce
Apartment::Tenant.create('test')
Expected behavior
create a new tenant named test
Actual behavior
apparently "forgets" the name and tries to create another "public" schema
System configuration
arch linux something
Database: (Tell us what database and its version you use.)
Postgresql 11.1
Apartment version:
2.2.0
Apartment config (in
config/initializers/apartment.rb
or so):use_schemas
: (true
orfalse
)true
Rails (or ActiveRecord) version:
5.0.6
Ruby version:
2.3.3
The text was updated successfully, but these errors were encountered: