diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-11-13 09:02:11 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-11-13 09:02:11 +0100 |
commit | 49245f37f7fc60bea5862aae1c9f8e1f1475872d (patch) | |
tree | 1a5aef17381b9aee90e28e4a20ab559df0fc108b /guides/source | |
parent | c2cb83b1447fee6cee496acd0816c0117b68b687 (diff) | |
download | rails-49245f37f7fc60bea5862aae1c9f8e1f1475872d.tar.gz rails-49245f37f7fc60bea5862aae1c9f8e1f1475872d.tar.bz2 rails-49245f37f7fc60bea5862aae1c9f8e1f1475872d.zip |
Revert "`remove_column` does not take a type argument. [ci skip]. Closes #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 9c9d4948e428a226a19aa92c17fa6ac5833c2fb8.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/migrations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/migrations.md b/guides/source/migrations.md index 93c7314779..71a177bca7 100644 --- a/guides/source/migrations.md +++ b/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 ``` |