aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorGeorge Semenov <me@gsemenov.com>2018-06-29 19:04:15 +0300
committerGeorge Semenov <me@gsemenov.com>2018-06-29 19:04:15 +0300
commit7be279a64456b33cd745720ab3dd1c59482bc542 (patch)
treebb687e668998d1e34215efea49fe0b687864ec6e /guides
parenta9692941600c34afbc8d60d15cb5f179d30f67e5 (diff)
downloadrails-7be279a64456b33cd745720ab3dd1c59482bc542.tar.gz
rails-7be279a64456b33cd745720ab3dd1c59482bc542.tar.bz2
rails-7be279a64456b33cd745720ab3dd1c59482bc542.zip
Remove erroneous remove_column option from example
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_migrations.md2
1 files changed, 1 insertions, 1 deletions
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`