aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema.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/test/schema/schema.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/test/schema/schema.rb')
-rw-r--r--activerecord/test/schema/schema.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index da0c4cecdd..d473680fdc 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -175,6 +175,7 @@ ActiveRecord::Schema.define do
end
add_index :companies, [:firm_id, :type, :rating, :ruby_type], :name => "company_index"
+ add_index :companies, [:firm_id, :type], :name => "company_partial_index", :where => "rating > 10"
create_table :computers, :force => true do |t|
t.integer :developer, :null => false