Sha256: 2c20a7588173108c534bce72aa962e70c22e6edbfbfd7a55ee4276a5a4a2c85f
Contents?: true
Size: 610 Bytes
Versions: 8
Compression:
Stored size: 610 Bytes
Contents
require "cases/helper" require "active_support/core_ext/numeric/bytes" class PostgresqlIntegerTest < ActiveRecord::PostgreSQLTestCase class PgInteger < ActiveRecord::Base end def setup @connection = ActiveRecord::Base.connection @connection.transaction do @connection.create_table "pg_integers", force: true do |t| t.integer :quota, limit: 8, default: 2.gigabytes end end end teardown do @connection.drop_table "pg_integers", if_exists: true end test "schema properly respects bigint ranges" do assert_equal 2.gigabytes, PgInteger.new.quota end end
Version data entries
8 entries across 8 versions & 1 rubygems