Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ame thing as recreate_database)
  • Loading branch information...
commit 8c38ead9d7bdb165b0f537f5abe03676fa5524b4 1 parent 92d04b1
@nicksieger nicksieger authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.