You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable Active Record partial_inserts by default in Rails 7.0
Ref: rails#42355
The justification for `partial_inserts` back in 2012
(144e869) was:
> This is more efficient, and also means that it will be safe to remove
> database columns without getting subsequent errors in running app processes
> (so long as the code in those processes doesn't contain any references to the
> removed column).
But since then `ignored_columns` is a much more reliable way to safely remove a
column, and I doubt the reduced query size really help much.
Additionally, `partial_inserts` prevent removing the default value of a column
in a safe way.
0 commit comments