From bf3f920989f3b1e06109335212c9127396e5cfc2 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Fri, 2 Sep 2005 10:07:14 +0000 Subject: Add documentation for index_type argument to add_index method for migrations #2005 [blaine@odeo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 2 ++ activerecord/lib/active_record/migration.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index b6a21d75de..67aaed3aea 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Add documentation for index_type argument to add_index method for migrations #2005 [blaine@odeo.com] + * Modify read_attribute to allow a symbol argument #2024 [Ken Kunz] * Make destroy return self #1913 [sebastian.kanthak@muehlheim.de] diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 6709439764..1e0a3b7ab0 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -63,7 +63,7 @@ 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_name): Add a new index with the name of the column on the column. + # * add_index(table_name, column_name, index_type): Add a new index with the name of the column on the column. Specify an optional index_type (e.g. UNIQUE). # * remove_index(table_name, column_name): Remove the index called the same as the column. # # == Irreversible transformations -- cgit v1.2.3