From 7be279a64456b33cd745720ab3dd1c59482bc542 Mon Sep 17 00:00:00 2001 From: George Semenov Date: Fri, 29 Jun 2018 19:04:15 +0300 Subject: Remove erroneous remove_column option from example --- guides/source/active_record_migrations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md index dda87802bf..9d33de5fa2 100644 --- a/guides/source/active_record_migrations.md +++ b/guides/source/active_record_migrations.md @@ -560,7 +560,7 @@ argument. Provide the original column options too, otherwise Rails can't recreate the column exactly when rolling back: ```ruby -remove_column :posts, :slug, :string, null: false, default: '', index: true +remove_column :posts, :slug, :string, null: false, default: '' ``` If you're going to need to use any other methods, you should use `reversible` -- cgit v1.2.3