aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-06-14 18:55:10 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-06-14 18:55:10 -0300
commit57a952a223e10b1f4062f45a9490dc7076ea40ba (patch)
treea3d1b23752297c22e44862962b9340b8f1e40cf8 /activerecord/test/schema
parent86af7d357899057f1565b2ebbeb4f3c3235846a1 (diff)
parent12e9a75f227ea7bcc23e2717e9ff5a72ec64e1f1 (diff)
downloadrails-57a952a223e10b1f4062f45a9490dc7076ea40ba.tar.gz
rails-57a952a223e10b1f4062f45a9490dc7076ea40ba.tar.bz2
rails-57a952a223e10b1f4062f45a9490dc7076ea40ba.zip
Merge pull request #6713 from etehtsea/activerecord-uuid
Add uuid datatype support to PostgreSQL adapter
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/postgresql_specific_schema.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/activerecord/test/schema/postgresql_specific_schema.rb b/activerecord/test/schema/postgresql_specific_schema.rb
index e51db50ae3..5f01f1fc50 100644
--- a/activerecord/test/schema/postgresql_specific_schema.rb
+++ b/activerecord/test/schema/postgresql_specific_schema.rb
@@ -1,6 +1,6 @@
ActiveRecord::Schema.define do
- %w(postgresql_tsvectors postgresql_hstores postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times postgresql_network_addresses postgresql_bit_strings
+ %w(postgresql_tsvectors postgresql_hstores postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times postgresql_network_addresses postgresql_bit_strings postgresql_uuids
postgresql_oids postgresql_xml_data_type defaults geometrics postgresql_timestamp_with_zones postgresql_partitioned_table postgresql_partitioned_table_parent).each do |table_name|
execute "DROP TABLE IF EXISTS #{quote_table_name table_name}"
end
@@ -59,6 +59,14 @@ _SQL
_SQL
execute <<_SQL
+ CREATE TABLE postgresql_uuids (
+ id SERIAL PRIMARY KEY,
+ guid uuid,
+ compact_guid uuid
+ );
+_SQL
+
+ execute <<_SQL
CREATE TABLE postgresql_tsvectors (
id SERIAL PRIMARY KEY,
text_vector tsvector