diff --git a/lib/tapioca/dsl/helpers/active_record_column_type_helper.rb b/lib/tapioca/dsl/helpers/active_record_column_type_helper.rb index 6230e278d..13d1f0353 100644 --- a/lib/tapioca/dsl/helpers/active_record_column_type_helper.rb +++ b/lib/tapioca/dsl/helpers/active_record_column_type_helper.rb @@ -101,6 +101,9 @@ def type_for_activerecord_value(column_type) when defined?(ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Uuid) && ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Uuid "::String" + when defined?(ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Cidr) && + ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Cidr + "::IPAddr" when defined?(ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Hstore) && ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Hstore "T::Hash[::String, ::String]" diff --git a/sorbet/rbi/shims/activerecord_postgresql.rbi b/sorbet/rbi/shims/activerecord_postgresql.rbi index aeff80110..f5fccc9de 100644 --- a/sorbet/rbi/shims/activerecord_postgresql.rbi +++ b/sorbet/rbi/shims/activerecord_postgresql.rbi @@ -4,3 +4,4 @@ module ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Uuid; end module ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array; end module ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Hstore; end +module ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Cidr; end