diff options
author | Jamis Buck <jamis@37signals.com> | 2005-09-02 10:07:14 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-09-02 10:07:14 +0000 |
commit | bf3f920989f3b1e06109335212c9127396e5cfc2 (patch) | |
tree | c5341a388495fc1f9188e54e98ba166aa7ad6496 /activerecord/lib | |
parent | 14b8fa308e5d415d5b2456fc1e0993bb7cae69a1 (diff) | |
download | rails-bf3f920989f3b1e06109335212c9127396e5cfc2.tar.gz rails-bf3f920989f3b1e06109335212c9127396e5cfc2.tar.bz2 rails-bf3f920989f3b1e06109335212c9127396e5cfc2.zip |
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
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 # * <tt>change_column(table_name, column_name, type, options)</tt>: Changes the column to a different type using the same # parameters as add_column. # * <tt>remove_column(table_name, column_name)</tt>: Removes the column named +column_name+ from the table called +table_name+. - # * <tt>add_index(table_name, column_name)</tt>: Add a new index with the name of the column on the column. + # * <tt>add_index(table_name, column_name, index_type)</tt>: Add a new index with the name of the column on the column. Specify an optional index_type (e.g. UNIQUE). # * <tt>remove_index(table_name, column_name)</tt>: Remove the index called the same as the column. # # == Irreversible transformations |