Skip to content
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

rake db:setup tries to seed non existing tenant #52

Closed
betelgeuse opened this issue May 19, 2020 · 2 comments
Closed

rake db:setup tries to seed non existing tenant #52

betelgeuse opened this issue May 19, 2020 · 2 comments
Assignees

Comments

@betelgeuse
Copy link

Steps to reproduce

  1. Setup config.tenant_names to a static array
  2. bundle exec rake db:setup

Expected behavior

  1. create the tenants
  2. seed

Actual behavior

  1. Seeding gives a warning and does nothing
Seeding testtenant1 tenant
One of the following schema(s) is invalid: "testtenant1" "public", "shared_extensions"

System configuration

  • Database: (Tell us what database and its version you use.)

PostgresSQL

  • Apartment version:

2.6.0

  • Apartment config (in config/initializers/apartment.rb or so):

    • use_schemas: true
    • persistent_schemas: %w[shared_extensions]
  • Rails (or ActiveRecord) version:

6.0.2.1

  • Ruby version:

2.7.0

@rpbaltazar
Copy link
Contributor

Thank you for reporting the issue. I'll try to take a look at it still during this week

rpbaltazar added a commit that referenced this issue May 20, 2020
@rpbaltazar rpbaltazar self-assigned this May 20, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
rpbaltazar added a commit that referenced this issue May 25, 2020
@rpbaltazar
Copy link
Contributor

Resolved with: e94a442

rpbaltazar added a commit that referenced this issue Jun 2, 2020
Prepare Release - 2.6.1

# Enhancements

- N/a

# Bugfixes

- [Resolves influitive#607] Avoid early connection
  - #39
  - #53
  - #51
- [Resolves #52] Rake db:setup tries to seed non existent tenant - #54
- [Resolves #56] DB rollback uses second last migration - #57

# Chores

- N/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants