Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "`remove_column` does not take a type argument. [ci skip]. Clo…

…ses #12864"

As of Rails 4.0 `remove_column` is no longer an alias for `remove_columns`.
The type is actually valid and used when issuing a rollback (new `change` method).

This reverts commit 6a5e364.
  • Loading branch information...
commit 3964d08132534e829765e0c7db61749b84fd770d 1 parent 6a5e364
@senny senny authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  guides/source/migrations.md
View
2  guides/source/migrations.md
@@ -179,7 +179,7 @@ generates
```ruby
class RemovePartNumberFromProducts < ActiveRecord::Migration
def change
- remove_column :products, :part_number
+ remove_column :products, :part_number, :string
end
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.