aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration.rb
diff options
context:
space:
mode:
authorVlad Jebelev <vlad@jebelev.com>2011-11-04 15:45:24 -0500
committerVlad Jebelev <vlad@jebelev.com>2011-11-04 15:45:24 -0500
commit69dcd45aea770ca90bb3e1f8ce4e944dfb37e766 (patch)
tree138e407191916e82fb9a941c6b03b1db216ac5bf /activerecord/lib/active_record/migration.rb
parentcb06727b6cb7310808f5b9ce1bf254055806ba80 (diff)
downloadrails-69dcd45aea770ca90bb3e1f8ce4e944dfb37e766.tar.gz
rails-69dcd45aea770ca90bb3e1f8ce4e944dfb37e766.tar.bz2
rails-69dcd45aea770ca90bb3e1f8ce4e944dfb37e766.zip
AR changes to support creating ordered (asc, desc) indexes
Diffstat (limited to 'activerecord/lib/active_record/migration.rb')
-rw-r--r--activerecord/lib/active_record/migration.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index 7166f1b82a..2fb1b8f7a3 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -116,8 +116,9 @@ module ActiveRecord
# +column_name+ from the table called +table_name+.
# * <tt>add_index(table_name, column_names, options)</tt>: Adds a new index
# with the name of the column. Other options include
- # <tt>:name</tt> and <tt>:unique</tt> (e.g.
- # <tt>{ :name => "users_name_index", :unique => true }</tt>).
+ # <tt>:name</tt>, <tt>:unique</tt> (e.g.
+ # <tt>{ :name => "users_name_index", :unique => true }</tt>) and <tt>:order</tt>
+ # (e.g. { :order => {:name => :desc} }</tt>).
# * <tt>remove_index(table_name, :column => column_name)</tt>: Removes the index
# specified by +column_name+.
# * <tt>remove_index(table_name, :name => index_name)</tt>: Removes the index