aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorKen Mazaika <kenmazaika@gmail.com>2013-03-27 22:38:53 -0400
committerKen Mazaika <kenmazaika@gmail.com>2013-03-27 22:38:53 -0400
commita89e9f70b24fe9c6b4f7b9343f4dc143928f2bdb (patch)
tree7d9b070fa6ebee2b3724a747d9dd43d049616d0e /activerecord/test/schema
parent57fbcc524780ce386241c8def372984583e585d6 (diff)
downloadrails-a89e9f70b24fe9c6b4f7b9343f4dc143928f2bdb.tar.gz
rails-a89e9f70b24fe9c6b4f7b9343f4dc143928f2bdb.tar.bz2
rails-a89e9f70b24fe9c6b4f7b9343f4dc143928f2bdb.zip
Dump the 'using' options for a SQL index into the schema.
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 8fd4898ad6..8beb58f3fc 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -183,6 +183,7 @@ ActiveRecord::Schema.define do
add_index :companies, [:firm_id, :type, :rating], :name => "company_index"
add_index :companies, [:firm_id, :type], :name => "company_partial_index", :where => "rating > 10"
+ add_index :companies, :name, :name => 'company_name_index', :using => :btree
create_table :vegetables, :force => true do |t|
t.string :name