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

Add topological sorting for dumped views using TSort #416

Merged
merged 4 commits into from
May 15, 2024

Conversation

calebhearth
Copy link
Contributor

Co-authored-by: Mykhaylo Sorochan mykhaylo.sorochan@toptal.com
Co-authored-by: Edward Loveall edward@edwardloveall.com

calebhearth and others added 4 commits May 2, 2024 08:56
Also remove ~>0.19 constraint on pg gem, which conflicts with ~>1.1
constraint in Gemfile
Upcoming changes like [topological sorting][1] have the potential to
write views to `db/schema.rb` in an order that does not respect
dependencies. This adds a test to ensure that views in all schemas are
both included, and in the correct dependency order.

[1]: #398
Co-authored-by: Mykhaylo Sorochan <mykhaylo.sorochan@toptal.com>
Co-authored-by: Edward Loveall <edward@edwardloveall.com>
@calebhearth calebhearth merged commit 7e32921 into main May 15, 2024
5 checks passed
@calebhearth calebhearth deleted the new-views-ordering branch May 15, 2024 01:21
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.

None yet

3 participants