Sha256: 03573fba16153b41aa7ad90742decad2198fecb14af078c4851091cdb210a675
Contents?: true
Size: 640 Bytes
Versions: 4
Compression:
Stored size: 640 Bytes
Contents
# frozen_string_literal: true require "cases/helper" class PostgreSQLPartitionsTest < ActiveRecord::PostgreSQLTestCase def setup @connection = ActiveRecord::Base.connection end def teardown @connection.drop_table "partitioned_events", if_exists: true end def test_partitions_table_exists skip unless ActiveRecord::Base.connection.database_version >= 100000 @connection.create_table :partitioned_events, force: true, id: false, options: "partition by range (issued_at)" do |t| t.timestamp :issued_at end assert @connection.table_exists?("partitioned_events") end end
Version data entries
4 entries across 4 versions & 1 rubygems