Class: Webroar::DBConnect
- Inherits:
-
Object
- Object
- Webroar::DBConnect
- Defined in:
- lib/db_connect.rb
Class Method Summary collapse
Class Method Details
.db_up(environment = 'production') ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/db_connect.rb', line 26 def db_up(environment='production') begin ActiveRecord::Base.establish_connection(get_db_configuration(environment)) load_models rescue NameError => e puts e puts e.backtrace.join("\n") end end |