aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-04 12:52:49 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-04 12:52:49 -0300
commit54d8c81fefdb566c2f317afd0142cade0273bdbc (patch)
treef1d77594855b8d706ca557ecdd551b4a0c16e524 /activerecord/test/models
parentb9774a594339d5ac92503d91d180d88ec1faf436 (diff)
parent933063188870347b59b35d4f96df21864d0f8f0b (diff)
downloadrails-54d8c81fefdb566c2f317afd0142cade0273bdbc.tar.gz
rails-54d8c81fefdb566c2f317afd0142cade0273bdbc.tar.bz2
rails-54d8c81fefdb566c2f317afd0142cade0273bdbc.zip
Merge pull request #12016 from roderickvd/uuid_fixes
Auto-generate stable fixture UUIDs on PostgreSQL Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/fixtures.rb activerecord/test/cases/adapters/postgresql/uuid_test.rb activesupport/CHANGELOG.md
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/uuid_child.rb3
-rw-r--r--activerecord/test/models/uuid_parent.rb3
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