Sha256: e1ea702a2863ebe5949acc082e06a337932ebe455a826511262094ab10ad8cd3

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 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

6 entries across 6 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/cases/adapters/mysql2/json_test.rb
ibm_db-5.4.1 test/cases/adapters/mysql2/json_test.rb
ibm_db-5.4.0 test/cases/adapters/mysql2/json_test.rb
ibm_db-5.3.2 test/cases/adapters/mysql2/json_test.rb
ibm_db-5.3.1 test/cases/adapters/mysql2/json_test.rb
ruby-on-quails-0.1.0 activerecord/test/cases/adapters/mysql2/json_test.rb