aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_dumper.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-10 10:23:42 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-10 10:23:42 -0800
commit3092324ef4e2f6f096adfbcf92597502b3ce91aa (patch)
treee88523b0d13982371dfd6ec3d36000191d128e67 /activerecord/lib/active_record/schema_dumper.rb
parentfc3fad8d85a82e2ac9ed5c108fb2410b72ab447b (diff)
parentaaffc2acd5fa3104fa936c334ef9d50774071c8b (diff)
downloadrails-3092324ef4e2f6f096adfbcf92597502b3ce91aa.tar.gz
rails-3092324ef4e2f6f096adfbcf92597502b3ce91aa.tar.bz2
rails-3092324ef4e2f6f096adfbcf92597502b3ce91aa.zip
Merge pull request #4956 from mhfs/pg_partial_indices
Add support for partial indices to PostgreSQL adapter
Diffstat (limited to 'activerecord/lib/active_record/schema_dumper.rb')
-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 2a565b51c6..dcbd165e58 100644
--- a/activerecord/lib/active_record/schema_dumper.rb
+++ b/activerecord/lib/active_record/schema_dumper.rb
@@ -197,6 +197,8 @@ HEADER
index_orders = (index.orders || {})
statement_parts << (':order => ' + index.orders.inspect) unless index_orders.empty?
+ statement_parts << (':where => ' + index.where.inspect) if index.where
+
' ' + statement_parts.join(', ')
end