Skip to content

Commit 87bee36

Browse files
authored
Merge pull request rails#52936 from kazuyainoue0124/fix_ar_migrations_guide
[ci-skip][docs] Use 'change_column_null' instead of 'change_column_default'
2 parents 2f55eba + 2a58737 commit 87bee36

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)