diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-14 18:55:10 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-14 18:55:10 -0300 |
commit | 57a952a223e10b1f4062f45a9490dc7076ea40ba (patch) | |
tree | a3d1b23752297c22e44862962b9340b8f1e40cf8 /activerecord/test/schema | |
parent | 86af7d357899057f1565b2ebbeb4f3c3235846a1 (diff) | |
parent | 12e9a75f227ea7bcc23e2717e9ff5a72ec64e1f1 (diff) | |
download | rails-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.rb | 10 |
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 |