aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-27 20:13:37 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-27 20:13:37 -0700
commit0739d146bcd31247391d64b852885634d78e576d (patch)
tree7d9b070fa6ebee2b3724a747d9dd43d049616d0e /activerecord/lib/active_record
parent57fbcc524780ce386241c8def372984583e585d6 (diff)
parenta89e9f70b24fe9c6b4f7b9343f4dc143928f2bdb (diff)
downloadrails-0739d146bcd31247391d64b852885634d78e576d.tar.gz
rails-0739d146bcd31247391d64b852885634d78e576d.tar.bz2
rails-0739d146bcd31247391d64b852885634d78e576d.zip
Merge pull request #9964 from where/using-schema-dump
Dump the 'using' options for a SQL index into the schema.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/schema_dumper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb
index fa9de926c5..47cbdbef1a 100644
--- a/activerecord/lib/active_record/schema_dumper.rb
+++ b/activerecord/lib/active_record/schema_dumper.rb
@@ -185,6 +185,8 @@ HEADER
statement_parts << ('where: ' + index.where.inspect) if index.where
+ statement_parts << ('using: ' + index.using.inspect) if index.using
+
' ' + statement_parts.join(', ')
end