Permalink
Browse files

Ensure postgresql tests work when starting from scratch.

  • Loading branch information...
1 parent 874603c commit a6cca5d1fc94bc62a1b5c4a3facafb7044021cd2 @fcheung fcheung committed with NZKoz Apr 30, 2008
Showing with 1 addition and 3 deletions.
  1. +0 −2 activerecord/Rakefile
  2. +1 −1 activerecord/test/schema/postgresql_specific_schema.rb
View
@@ -72,8 +72,6 @@ namespace :postgresql do
task :build_databases do
%x( createdb activerecord_unittest )
%x( createdb activerecord_unittest2 )
- %x( psql activerecord_unittest -f #{File.join(SCHEMA_ROOT, 'postgresql.sql')} )
- %x( psql activerecord_unittest2 -f #{File.join(SCHEMA_ROOT, 'postgresql2.sql')} )
end
desc 'Drop the PostgreSQL test databases'
@@ -2,7 +2,7 @@
%w(postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times postgresql_network_addresses postgresql_bit_strings
postgresql_oids defaults geometrics).each do |table_name|
- drop_table table_name
+ execute "DROP TABLE IF EXISTS #{quote_table_name table_name}"
end
execute 'DROP SEQUENCE IF EXISTS companies_nonstd_seq CASCADE'

0 comments on commit a6cca5d

Please sign in to comment.