Sha256: 75b65c1bd0566dc0cb97ccdc91557e01e6ea2f0814050e08a0339a941d565673

Contents?: true

Size: 514 Bytes

Versions: 4

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

require "cases/helper"
require "cases/json_shared_test_cases"

if ActiveRecord::Base.connection.supports_json?
  class Mysql2JSONTest < ActiveRecord::Mysql2TestCase
    include JSONSharedTestCases
    self.use_transactional_tests = false

    def setup
      super
      @connection.create_table("json_data_type") do |t|
        t.json "payload"
        t.json "settings"
      end
    end

    private
      def column_type
        :json
      end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/cases/adapters/mysql2/json_test.rb
ibm_db-5.4.1-x86-mingw32 test/cases/adapters/mysql2/json_test.rb
ibm_db-5.4.0-x86-mingw32 test/cases/adapters/mysql2/json_test.rb
ibm_db-5.3.2-x86-mingw32 test/cases/adapters/mysql2/json_test.rb