mirror of https://github.com/rails/rails
Merge pull request #48824 from Shopify/sort-schema-cache
Sort SchemaCache members when dumping it
This commit is contained in:
commit
8c23eaa4eb
|
@ -278,10 +278,10 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def encode_with(coder) # :nodoc:
|
||||
coder["columns"] = @columns
|
||||
coder["primary_keys"] = @primary_keys
|
||||
coder["data_sources"] = @data_sources
|
||||
coder["indexes"] = @indexes
|
||||
coder["columns"] = @columns.sort.to_h
|
||||
coder["primary_keys"] = @primary_keys.sort.to_h
|
||||
coder["data_sources"] = @data_sources.sort.to_h
|
||||
coder["indexes"] = @indexes.sort.to_h
|
||||
coder["version"] = @version
|
||||
coder["database_version"] = @database_version
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue