public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Ensure postgresql tests work when starting from scratch.
fcheung (author)
Wed Apr 30 02:54:54 -0700 2008
NZKoz (committer)
Wed Apr 30 02:54:54 -0700 2008
commit  a6cca5d1fc94bc62a1b5c4a3facafb7044021cd2
tree    f140a3edbf7fc164d1d60cce35c4305fbf796556
parent  874603ce8d7b9077650ef3632a161597424486d9
...
72
73
74
75
76
77
78
79
...
72
73
74
 
 
75
76
77
0
@@ -72,8 +72,6 @@ namespace :postgresql do
0
   task :build_databases do
0
     %x( createdb activerecord_unittest )
0
     %x( createdb activerecord_unittest2 )
0
- %x( psql activerecord_unittest -f #{File.join(SCHEMA_ROOT, 'postgresql.sql')} )
0
- %x( psql activerecord_unittest2 -f #{File.join(SCHEMA_ROOT, 'postgresql2.sql')} )
0
   end
0
 
0
   desc 'Drop the PostgreSQL test databases'
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@ ActiveRecord::Schema.define do
0
 
0
   %w(postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times postgresql_network_addresses postgresql_bit_strings
0
       postgresql_oids defaults geometrics).each do |table_name|
0
- drop_table table_name
0
+ execute "DROP TABLE IF EXISTS #{quote_table_name table_name}"
0
   end
0
 
0
   execute 'DROP SEQUENCE IF EXISTS companies_nonstd_seq CASCADE'

Comments

    No one has commented yet.