Skip to content

Commit 49245f3

Browse files
committed
Revert "remove_column does not take a type argument. [ci skip]. Closes rails#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 9c9d494.
1 parent c2cb83b commit 49245f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/migrations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ generates
179179
```ruby
180180
class RemovePartNumberFromProducts < ActiveRecord::Migration
181181
def change
182-
remove_column :products, :part_number
182+
remove_column :products, :part_number, :string
183183
end
184184
end
185185
```

0 commit comments

Comments
 (0)