mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix CI failure caused by df84e98672
This commit is contained in:
parent
debd774d63
commit
d2385926a5
1 changed files with 2 additions and 2 deletions
|
@ -198,13 +198,13 @@ class PostgresqlUUIDGenerationTest < ActiveRecord::PostgreSQLTestCase
|
||||||
def test_schema_dumper_for_uuid_primary_key
|
def test_schema_dumper_for_uuid_primary_key
|
||||||
schema = dump_table_schema "pg_uuids"
|
schema = dump_table_schema "pg_uuids"
|
||||||
assert_match(/\bcreate_table "pg_uuids", id: :uuid, default: -> { "uuid_generate_v1\(\)" }/, schema)
|
assert_match(/\bcreate_table "pg_uuids", id: :uuid, default: -> { "uuid_generate_v1\(\)" }/, schema)
|
||||||
assert_match(/t\.uuid "other_uuid", default: -> { "uuid_generate_v4\(\)" }/, schema)
|
assert_match(/t\.uuid "other_uuid", default: -> { "uuid_generate_v4\(\)" }/, schema)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_schema_dumper_for_uuid_primary_key_with_custom_default
|
def test_schema_dumper_for_uuid_primary_key_with_custom_default
|
||||||
schema = dump_table_schema "pg_uuids_2"
|
schema = dump_table_schema "pg_uuids_2"
|
||||||
assert_match(/\bcreate_table "pg_uuids_2", id: :uuid, default: -> { "my_uuid_generator\(\)" }/, schema)
|
assert_match(/\bcreate_table "pg_uuids_2", id: :uuid, default: -> { "my_uuid_generator\(\)" }/, schema)
|
||||||
assert_match(/t\.uuid "other_uuid_2", default: -> { "my_uuid_generator\(\)" }/, schema)
|
assert_match(/t\.uuid "other_uuid_2", default: -> { "my_uuid_generator\(\)" }/, schema)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue