public
Fork of wycats/merb-plugins
Description: Merb Plugins: Even more modules to hook up your Merb installation
Homepage: http://www.merbivore.com
Clone URL: git://github.com/somebee/merb-plugins.git
Fixed merb_activerecord db:test:purge rake task for postgresql.

Corrects a typo in merb_activerecord which prevented the db:test:purge
task from working when using a postgresql (pgsql) database.

Signed-off-by: Ezra Zygmuntowicz <ez@engineyard.com>
zach (author)
Thu Apr 24 09:24:45 -0700 2008
ezmobius (committer)
Sat May 03 18:58:11 -0700 2008
commit  1554460f6a069abc3e18b8d7f968c082a9634f11
tree    7880f50dc487f8b2a77f096fc0c14dda9d90a7f9
parent  f1eb7b485da57a0e0fb2fe2923a4f7f07f056b60
...
284
285
286
287
288
 
 
289
290
291
...
284
285
286
 
 
287
288
289
290
291
0
@@ -284,8 +284,8 @@ namespace :db do
0
           ActiveRecord::Base.connection.recreate_database(config[:database])
0
         when "postgresql"
0
           ENV['PGHOST'] = config[:host] if config[:host]
0
- ENV['PGPORT'] = configs[:port].to_s if config[:port]
0
- ENV['PGPASSWORD'] = configs[:password].to_s if config[:password]
0
+ ENV['PGPORT'] = config[:port].to_s if config[:port]
0
+ ENV['PGPASSWORD'] = config[:password].to_s if config[:password]
0
           enc_option = "-E #{config[:encoding]}" if config[:encoding]
0
           ActiveRecord::Base.clear_active_connections!
0
           `dropdb -U "#{config[:username]}" #{config[:database]}`

Comments

    No one has commented yet.