diff options
author | Roderick van Domburg <roderick@vandomburg.net> | 2013-08-25 11:22:36 +0200 |
---|---|---|
committer | Roderick van Domburg <roderick@vandomburg.net> | 2014-01-07 19:05:50 +0100 |
commit | 933063188870347b59b35d4f96df21864d0f8f0b (patch) | |
tree | 6e6b53d094cccc603ee97dae3117544faf9e6c84 /activerecord/test/models | |
parent | 032ab5064b7b436c3ec71373d5faadceb273477e (diff) | |
download | rails-933063188870347b59b35d4f96df21864d0f8f0b.tar.gz rails-933063188870347b59b35d4f96df21864d0f8f0b.tar.bz2 rails-933063188870347b59b35d4f96df21864d0f8f0b.zip |
Auto-generate stable fixture UUIDs on PostgreSQL.
Fixes: #11524
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/uuid_child.rb | 3 | ||||
-rw-r--r-- | activerecord/test/models/uuid_parent.rb | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/uuid_child.rb b/activerecord/test/models/uuid_child.rb new file mode 100644 index 0000000000..a3d0962ad6 --- /dev/null +++ b/activerecord/test/models/uuid_child.rb @@ -0,0 +1,3 @@ +class UuidChild < ActiveRecord::Base + belongs_to :uuid_parent +end diff --git a/activerecord/test/models/uuid_parent.rb b/activerecord/test/models/uuid_parent.rb new file mode 100644 index 0000000000..5634f22d0c --- /dev/null +++ b/activerecord/test/models/uuid_parent.rb @@ -0,0 +1,3 @@ +class UuidParent < ActiveRecord::Base + has_many :uuid_children +end |