Skip to content

Commit

Permalink
Ensure postgresql tests work when starting from scratch.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcheung authored and NZKoz committed Apr 30, 2008
1 parent 874603c commit a6cca5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions activerecord/Rakefile
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/schema/postgresql_specific_schema.rb
Expand Up @@ -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'
Expand Down

0 comments on commit a6cca5d

Please sign in to comment.