Skip to content

Commit 2a58737

Browse files
committed
[ci-skip][docs] Use 'change_column_null' instead of 'change_column_default'
1 parent 6e46b42 commit 2a58737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_record_migrations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ change_column_default :products, :approved, from: true, to: false
643643

644644
This changes the default value of the `:approved` field from true to false. This
645645
change will only be applied to future records, any existing records do not
646-
change. Use [`change_column_default`][] to change a null constraint.
646+
change. Use [`change_column_null`][] to change a null constraint.
647647

648648
```ruby
649649
change_column_null :products, :name, false

0 commit comments

Comments
 (0)