aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures
diff options
context:
space:
mode:
authorRoderick van Domburg <roderick@vandomburg.net>2013-08-25 11:22:36 +0200
committerRoderick van Domburg <roderick@vandomburg.net>2014-01-07 19:05:50 +0100
commit933063188870347b59b35d4f96df21864d0f8f0b (patch)
tree6e6b53d094cccc603ee97dae3117544faf9e6c84 /activerecord/test/fixtures
parent032ab5064b7b436c3ec71373d5faadceb273477e (diff)
downloadrails-933063188870347b59b35d4f96df21864d0f8f0b.tar.gz
rails-933063188870347b59b35d4f96df21864d0f8f0b.tar.bz2
rails-933063188870347b59b35d4f96df21864d0f8f0b.zip
Auto-generate stable fixture UUIDs on PostgreSQL.
Fixes: #11524
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r--activerecord/test/fixtures/uuid_children.yml3
-rw-r--r--activerecord/test/fixtures/uuid_parents.yml2
2 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/uuid_children.yml b/activerecord/test/fixtures/uuid_children.yml
new file mode 100644
index 0000000000..a7b15016e2
--- /dev/null
+++ b/activerecord/test/fixtures/uuid_children.yml
@@ -0,0 +1,3 @@
+sonny:
+ uuid_parent: daddy
+ name: Sonny
diff --git a/activerecord/test/fixtures/uuid_parents.yml b/activerecord/test/fixtures/uuid_parents.yml
new file mode 100644
index 0000000000..0b40225c5c
--- /dev/null
+++ b/activerecord/test/fixtures/uuid_parents.yml
@@ -0,0 +1,2 @@
+daddy:
+ name: Daddy