Created
March 1, 2021 19:39
-
-
Save edtjones/864ad38346cd91c9ec38157a6b8007e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SchemaOrderFix | |
def dump(stream) | |
header(stream) | |
extensions(stream) | |
tables(stream) | |
views(stream) | |
functions(stream) | |
triggers(stream) | |
trailer(stream) | |
stream | |
end | |
end | |
ActiveRecord::SchemaDumper.prepend(SchemaOrderFix) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment