From 27941f649ffdae507e099720dbb972cfb07b16b8 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Fri, 26 Oct 2007 03:55:22 +0000 Subject: Update add_index documentation to use new options api. Closes #9787 [kamal] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8031 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 2 ++ activerecord/lib/active_record/migration.rb | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 61b060796b..14da622a86 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Update add_index documentation to use new options api. Closes #9787 [kamal] + * Allow find on a has_many association defined with :finder_sql to accept id arguments as strings like regular find does. Closes #9916 [krishna] * Use VALID_FIND_OPTIONS when resolving :find scoping rather than hard coding the list of valid find options. Closes #9443 [sur] diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 692859e2a6..2405eeb873 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -78,7 +78,8 @@ module ActiveRecord # * change_column(table_name, column_name, type, options): Changes the column to a different type using the same # parameters as add_column. # * remove_column(table_name, column_name): Removes the column named +column_name+ from the table called +table_name+. - # * add_index(table_name, column_names, index_type, index_name): Add a new index with the name of the column, or +index_name+ (if specified) on the column(s). Specify an optional +index_type+ (e.g. UNIQUE). + # * add_index(table_name, column_names, options): Add a new index with the name of the column. Other options include + # :name and :unique (e.g. { :name => "users_name_index", :unique => true }). # * remove_index(table_name, index_name): Remove the index specified by +index_name+. # # == Irreversible transformations -- cgit v1.2.3