aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorMarcelo Silveira <marcelo@mhfs.com.br>2012-02-09 03:28:11 -0200
committerMarcelo Silveira <marcelo@mhfs.com.br>2012-02-09 03:28:11 -0200
commit7ef22fce7cdb955aba3b2f45629a711592336b1f (patch)
tree86362e8c3ec89afd925a593fb96a2dd8f8e6e3dc /activerecord/test/schema
parentd70e0236df61d69c9299fe63df94da35c87ee2d8 (diff)
downloadrails-7ef22fce7cdb955aba3b2f45629a711592336b1f.tar.gz
rails-7ef22fce7cdb955aba3b2f45629a711592336b1f.tar.bz2
rails-7ef22fce7cdb955aba3b2f45629a711592336b1f.zip
Made schema dumper recognize partial indices' where statements
Diffstat (limited to 'activerecord/test/schema')
-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