← See all notes

Things you should definitely do in a greenfield application

A lot of these are Rails specific, but can be adapted to other stacks.

FactoryBot.define do after :build do |record| if record.is_a? ActiveRecord::Base record.strict_loading! false end end

after :stub do |record| if record.is_a? ActiveRecord::Base record.strict_loading! false end end end ```