diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-25 05:10:37 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-25 05:10:37 -0700 |
commit | 03deb47764b08453ed072fb70f66614ffca25fd5 (patch) | |
tree | 2077de79ce870450289368134db66273535d1111 /activerecord | |
parent | abeff5e64553ad5491a1663d124bfe9582a5f61e (diff) | |
parent | e25185622a916ccdc3623b54a479482bfc9d14cc (diff) | |
download | rails-03deb47764b08453ed072fb70f66614ffca25fd5.tar.gz rails-03deb47764b08453ed072fb70f66614ffca25fd5.tar.bz2 rails-03deb47764b08453ed072fb70f66614ffca25fd5.zip |
Merge pull request #12641 from jetthoughts/12640_updated_migrations_doc_to_use_remove_column
Fix migration docs to use new remove_column semantics
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index a1ad4f6255..27d398ad07 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -120,8 +120,8 @@ module ActiveRecord # a column but keeps the type and content. # * <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_names)</tt>: Removes the column listed in - # +column_names+ from the table called +table_name+. + # * <tt>remove_column(table_name, column_name, type, options)</tt>: Removes the column + # named +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>, <tt>:unique</tt> (e.g. |