Permalink
Browse files

db:drop will drop only user objects.

  • Loading branch information...
1 parent 9ae09b3 commit 92173d02632064d55c87236c2cc6ec1f58859124 @ebeigarts ebeigarts committed Sep 18, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/active_record/connection_adapters/oracle_enhanced.rake
@@ -44,10 +44,7 @@ alias :create_database :create_database_with_oracle_enhanced
# Drops database user with db:drop
def drop_database_with_oracle_enhanced(config)
if config['adapter'] == 'oracle_enhanced'
- print "Please provide the SYSTEM password for your oracle installation\n>"
- system_password = $stdin.gets.strip
- ActiveRecord::Base.establish_connection(config.merge('username' => 'SYSTEM', 'password' => system_password))
- ActiveRecord::Base.connection.execute "DROP USER #{config['username']} CASCADE"
+ ActiveRecord::Base.connection.execute_structure_dump(ActiveRecord::Base.connection.full_drop)
else
drop_database_without_oracle_enhanced(config)
end

0 comments on commit 92173d0

Please sign in to comment.