{"record":{"id":"8bb6479b466c8397","repo":"flippercloud/flipper","slug":"data-type-is-not-supported-by-this-adapter","errorCode":null,"errorMessage":"#{data_type} is not supported by this adapter","messagePattern":"#(.+?) is not supported by this adapter","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"lib/flipper/adapters/active_record.rb","lineNumber":194,"sourceCode":"          set(feature, gate, thing)\n        when :json\n          with_write_connection(@gate_class) do\n            delete(feature, gate)\n          end\n        when :set\n          with_write_connection(@gate_class) do\n            @gate_class.where(feature_key: feature.key, key: gate.key, value: thing.value).destroy_all\n          end\n        else\n          unsupported_data_type gate.data_type\n        end\n\n        true\n      end\n\n      # Private\n      def unsupported_data_type(data_type)\n        raise \"#{data_type} is not supported by this adapter\"\n      end\n\n      private\n\n      def model_class(default_class, table_prefix, table_name)\n        return default_class if table_prefix.nil?\n\n        Class.new(default_class) do\n          self.table_name = \"#{table_prefix}#{table_name}\"\n        end\n      end\n\n      def set(feature, gate, thing, options = {})\n        clear_feature = options.fetch(:clear, false)\n        json_feature = options.fetch(:json, false)\n\n        raise VALUE_TO_TEXT_WARNING if json_feature && value_not_text?\n","sourceCodeStart":176,"sourceCodeEnd":212,"githubUrl":"https://github.com/flippercloud/flipper/blob/1f86de3ec91521585b156445e156642938b19cb0/lib/flipper/adapters/active_record.rb#L176-L212","documentation":"Error \"#{data_type} is not supported by this adapter\" thrown in flippercloud/flipper.","triggerScenarios":"Thrown at lib/flipper/adapters/active_record.rb:194 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not use ActiveRecord adapter features for that data type; it only supports the documented gate data types","Migrate the offending data to a supported type (string, integer, boolean, json as documented)","Upgrade flipper-active_record if a newer version added support for that data type"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1f86de3ec91521585b156445e156642938b19cb0","analyzedAt":"2026-08-23T04:36:09.896Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}