Skip virtual columns when generating cached fixture INSERTs (#55)
Models with generated/virtual columns reject INSERTs into those
columns ("cannot INSERT into generated column"). The coder was
including every column from model.column_names, so any model with a
t.virtual column would crash mount.
Filter columns by adapter capability + Column#virtual?, mirroring how
Rails' build_fixture_sql filters them in connection_adapters/abstract/
database_statements.rb.
Adds a computed_widgets table with a stored generated column to the
dummy app and a regression spec exercising the round-trip.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> N
Ngan Pham committed
eecc0a3d68cdd0eea59266144cba900b907db5c0
Parent: a709791
Committed by GitHub <noreply@github.com>
on 5/6/2026, 8:14:36 PM