1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure postgresql tests work when starting from scratch.

This commit is contained in:
Frederick Cheung 2008-04-30 21:54:54 +12:00 committed by Michael Koziarski
parent 874603ce8d
commit a6cca5d1fc
2 changed files with 1 additions and 3 deletions

View file

@ -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'

View file

@ -2,7 +2,7 @@ ActiveRecord::Schema.define do
%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'