Sha256: 089cb60690af0afefe42fc9a89959ddaefb5d93b8a8dbf32f0603bf5a18707db
Contents?: true
Size: 618 Bytes
Versions: 6
Compression:
Stored size: 618 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
6 entries across 6 versions & 1 rubygems