Class: Combustion::Databases::Oracle

Inherits:
Base
  • Object
show all
Defined in:
lib/combustion/databases/oracle.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Combustion::Databases::Base

Instance Method Details

#resetObject



4
5
6
7
8
9
# File 'lib/combustion/databases/oracle.rb', line 4

def reset
  establish_connection Rails.env.to_sym
  connection.structure_drop.split(";\n\n").each do |ddl|
    connection.execute(ddl)
  end
end