Class: Combustion::Databases::Base

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

Direct Known Subclasses

Firebird, MySQL, Oracle, PostgreSQL, SQLServer, SQLite

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ Base

Returns a new instance of Base.


6
7
8
# File 'lib/combustion/databases/base.rb', line 6

def initialize(configuration)
  @configuration = configuration
end

Instance Method Details

#resetObject


10
11
12
13
14
15
# File 'lib/combustion/databases/base.rb', line 10

def reset
  drop
  create

  establish_connection Rails.env.to_sym
end