Skip to content

Commit

Permalink
Revert "remove_column does not take a type argument. [ci skip]. Closes
Browse files Browse the repository at this point in the history
 #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
senny committed Nov 13, 2013
1 parent 6a5e364 commit 3964d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 3964d08

Please sign in to comment.