Skip to content

Instantly share code, notes, and snippets.

@edtjones
Created March 1, 2021 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edtjones/864ad38346cd91c9ec38157a6b8007e0 to your computer and use it in GitHub Desktop.
Save edtjones/864ad38346cd91c9ec38157a6b8007e0 to your computer and use it in GitHub Desktop.
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