Skip to content
Browse files

ACTIVERECORD_JDBC-1: Add #drop_database method for oracle (does the s…

…ame thing as recreate_database)
  • Loading branch information...
1 parent 92d04b1 commit 8c38ead9d7bdb165b0f537f5abe03676fa5524b4 @nicksieger nicksieger committed Mar 17, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/jdbc_adapter/jdbc_oracle.rb
View
4 lib/jdbc_adapter/jdbc_oracle.rb
@@ -128,6 +128,10 @@ def recreate_database(name)
tables.each{ |table| drop_table(table) }
end
+ def drop_database(name)
+ recreate_database(name)
+ end
+
def insert(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil) #:nodoc:
if id_value # Pre-assigned id
execute sql, name

0 comments on commit 8c38ead

Please sign in to comment.
Something went wrong with that request. Please try again.