diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-10-29 18:11:51 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-10-29 18:12:22 -0700 |
commit | 6dc178711de036ae9a441e83978b7ed740be2f63 (patch) | |
tree | 3df384826549ea74ef0e9dd52a158bb038c77710 /activerecord/test/cases | |
parent | f9d4b50944e09273e299ff1b3cec5638320b7ae9 (diff) | |
download | rails-6dc178711de036ae9a441e83978b7ed740be2f63.tar.gz rails-6dc178711de036ae9a441e83978b7ed740be2f63.tar.bz2 rails-6dc178711de036ae9a441e83978b7ed740be2f63.zip |
add bigserial pk support
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/uuid_test.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb index ae5b409f99..376dc2490e 100644 --- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb +++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb @@ -110,6 +110,26 @@ class PostgresqlUUIDTest < ActiveRecord::TestCase end end +class PostgresqlLargeKeysTest < ActiveRecord::TestCase + include PostgresqlUUIDHelper + def setup + connection.create_table('big_serials', id: :bigserial) do |t| + t.string 'name' + end + end + + def test_omg + schema = StringIO.new + ActiveRecord::SchemaDumper.dump(connection, schema) + assert_match "create_table \"big_serials\", id: :bigserial, force: true", + schema.string + end + + def teardown + drop_table "big_serials" + end +end + class PostgresqlUUIDGenerationTest < ActiveRecord::TestCase include PostgresqlUUIDHelper |