-
Notifications
You must be signed in to change notification settings - Fork 167
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
error running db:seed task #86
Comments
Thank you for reporting, Will be addressing this issue over the weekend |
can you please paste your |
@rpbaltazar I have attached the apartment.rb file to my first post |
@pedrorgomes I'm having some issue reproducing your error. It's either a configuration problem on your app or on my demo. That being said, in order for me to help you further, you can create a simple repo with the problem happening that i can checkout and debug or we can try to jump on a sharing screen session where you show me the project setup and we do a bit of testing against the apartment itself. |
I commented on the PR, but i meant to write it here. |
Prepare Release - 2.8.0 - Resolves #98 - Trying to generate an automatic changelog - #99 - Resolves #86 - Fixes seeding errors - #87 - Resolves #66 - Uses a transaction to create a tenant - #69 - Resolves #121 - Relaxes dependencies to allow rails 6.1 - #122 - Resolves #123 - When tests run in a transaction, new tenants in tests fail to create - #124 - Reverted unsafe initializer - #118
Steps to reproduce
rails db:drop db:create db:migrate db:seed
Expected behavior
(truncated)
[WARNING] - The list of tenants to migrate appears to be empty. This could mean a few things:
Seeding myapp_development_mygroup tenant
Actual behavior
(truncated)
[WARNING] - The list of tenants to migrate appears to be empty. This could mean a few things:
Creating myapp_development_mygroup tenant
Error while creating tenant myapp_development_mygroup: Mysql2::Error: Can't create database 'myapp_development_mygroup'; database exists
Seeding myapp_development_mygroup tenant
(Seems like the application tries to create a database before running the seed command.)
System configuration
Database: Mysql 8.0.20
Apartment version: 2.7.1
Apartment config (in
config/initializers/apartment.rb
or so): #config.use_schemas = true (line is commented)Rails (or ActiveRecord) version: 6.0.3.2
Ruby version: 2.7.1
I'm getting an error while running db:seed. It looks like the application tries to create a database before running the seed command. Everything runs ok at version 2.7.0
Due to this commit:
b6af077
apartment.zip
The text was updated successfully, but these errors were encountered: