diff options
author | Marcel Molina <marcel@vernix.org> | 2006-04-22 15:10:09 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-04-22 15:10:09 +0000 |
commit | 84ec53753afd8b7288d5ac224c3157c3943df054 (patch) | |
tree | 67ff10bedbd9bf6a795e47a5a68b05cfb142e31c | |
parent | 526c69b49e36892af3ad7833e479de0a0fa6f278 (diff) | |
download | rails-84ec53753afd8b7288d5ac224c3157c3943df054.tar.gz rails-84ec53753afd8b7288d5ac224c3157c3943df054.tar.bz2 rails-84ec53753afd8b7288d5ac224c3157c3943df054.zip |
Update inconsistent migrations documentation. Closes #4683. [machomagna@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activerecord/CHANGELOG | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index dd5dbdc71c..0f331f3d9a 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Update inconsistent migrations documentation. #4683 [machomagna@gmail.com] + * Add ActiveRecord::Errors#to_xml [Jamis Buck] * Properly quote index names in migrations (closes #4764) [John Long] diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index d3581e2ccc..8dd3086413 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -70,8 +70,8 @@ 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, 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. + # * <tt>add_index(table_name, column_names, index_type, index_name)</tt>: 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). + # * <tt>remove_index(table_name, index_name)</tt>: Remove the index specified by +index_name+. # # == Irreversible transformations # |