Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

db:drop will drop only user objects.

  • Loading branch information...
commit 92173d02632064d55c87236c2cc6ec1f58859124 1 parent 9ae09b3
@ebeigarts ebeigarts authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/active_record/connection_adapters/oracle_enhanced.rake
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.