Sha256: 26d582f10ccbbfec6e7a529013e29ab578e0b8af70f914134ffb1f4c4fb3ad3e
Contents?: true
Size: 659 Bytes
Versions: 5
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true require "cases/helper" require "cases/json_shared_test_cases" class JsonAttributeTest < ActiveRecord::TestCase include JSONSharedTestCases self.use_transactional_tests = false class JsonDataTypeOnText < ActiveRecord::Base self.table_name = "json_data_type" attribute :payload, :json attribute :settings, :json store_accessor :settings, :resolution end def setup super @connection.create_table("json_data_type") do |t| t.string "payload" t.string "settings" end end private def column_type :string end def klass JsonDataTypeOnText end end
Version data entries
5 entries across 5 versions & 1 rubygems