AM: https://github.com/rails/rails/blob/6fb056e3b63adee0ef9f5ae00ba50736abf455e1/activerecord/lib/active_record/model_schema.rb#L295