aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-22 16:01:01 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-22 16:01:01 -0300
commitafcca464db2ea23438c481a5257169570c32c904 (patch)
tree50840ed2f0cd4f8d15d9879c96df2a137b3e983f /activerecord/test
parent70ff2568508151b89880b372f0f23fd328bd7027 (diff)
parent4734e4ed3181bf8c8dca959078b7e6295e702719 (diff)
downloadrails-afcca464db2ea23438c481a5257169570c32c904.tar.gz
rails-afcca464db2ea23438c481a5257169570c32c904.tar.bz2
rails-afcca464db2ea23438c481a5257169570c32c904.zip
Merge pull request #11382 from kennyj/fix_10751-2
Dump UUID default functions to schema.rb [2nd version]. Fixes #10751. Conflicts: activerecord/CHANGELOG.md
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/adapters/postgresql/uuid_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb
index e4cf5d2ef6..0cd5b420fc 100644
--- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb
@@ -61,6 +61,7 @@ class PostgresqlUUIDTest < ActiveRecord::TestCase
schema = StringIO.new
ActiveRecord::SchemaDumper.dump(@connection, schema)
assert_match(/\bcreate_table "pg_uuids", id: :uuid\b/, schema.string)
+ assert_match(/t\.uuid "other_uuid", default: "uuid_generate_v4\(\)"/, schema.string)
end
end