aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJan Pieper <kontakt@jan-pieper.info>2017-07-12 19:00:49 +0200
committerJan Pieper <kontakt@jan-pieper.info>2017-07-12 19:00:49 +0200
commit8dca921987d9cfcbe6e29f3b164fb7bf08cde3ff (patch)
treea3e0c53589ae1b381629cfd3aba78b25d8ff1dfd /activerecord/lib/active_record
parent58f10a31b37e9bb6e975a71aa63744f318ee043d (diff)
downloadrails-8dca921987d9cfcbe6e29f3b164fb7bf08cde3ff.tar.gz
rails-8dca921987d9cfcbe6e29f3b164fb7bf08cde3ff.tar.bz2
rails-8dca921987d9cfcbe6e29f3b164fb7bf08cde3ff.zip
Sort enabled adapter extensions in schema dump
The list of enabled adapter extensions in the schema dump isn't sorted by default, so it may happen that the sorting changes over time. If you're using a VCS, a change to the sorting results in a diff without any real change. Sorting the list should solve this problem.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/schema_dumper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb
index 66a2846f3a..9048fa6d67 100644
--- a/activerecord/lib/active_record/schema_dumper.rb
+++ b/activerecord/lib/active_record/schema_dumper.rb
@@ -85,7 +85,7 @@ HEADER
extensions = @connection.extensions
if extensions.any?
stream.puts " # These are extensions that must be enabled in order to support this database"
- extensions.each do |extension|
+ extensions.sort.each do |extension|
stream.puts " enable_extension #{extension.inspect}"
end
stream.puts