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

explicitly migrate the test DB #492

Merged
merged 1 commit into from
Sep 11, 2024
Merged

explicitly migrate the test DB #492

merged 1 commit into from
Sep 11, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Sep 11, 2024

No description provided.

@@ -20,7 +20,7 @@ def configureDatabase(ruby) {
bundleExec(ruby, 'rake db:drop >/dev/null 2>/dev/null || true')
bundleExec(ruby, 'rake db:create --trace')
bundleExec(ruby, 'rake db:create --trace RAILS_ENV=production')
bundleExec(ruby, 'rake db:migrate --trace')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like consistency with the db:create statements.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and by consistency you mean "delete the creates, they are implicit by migrate"? :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mhh, we still need create for prod (which is not migrated, but needs to exist for asset compilation, and we probably do not properly set DATABASE_URL=nulldb://nohost everywhere)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so I updated the create to have RAILS_ENV=test, that should be safe, we can get things rolling (again) and do the cleanup later.

@evgeni evgeni force-pushed the explicit-migrate-test branch from 5dfc101 to 9ee18f4 Compare September 11, 2024 10:35
@ekohl ekohl merged commit f7ed43f into master Sep 11, 2024
2 checks passed
@ekohl ekohl deleted the explicit-migrate-test branch September 11, 2024 12:58
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

Successfully merging this pull request may close these issues.

2 participants