class Lightning::Database
Public Class Methods
connect()
click to toggle source
# File lib/framework/db.rb, line 42 def self.connect ActiveRecord::Base.establish_connection(DatabaseDetails.basic) end
connect_and_select()
click to toggle source
# File lib/framework/db.rb, line 46 def self.connect_and_select ActiveRecord::Base.establish_connection(DatabaseDetails.full) end
enable_logging()
click to toggle source
# File lib/framework/db.rb, line 38 def self.enable_logging ActiveRecord::Base.logger = Logger.new(STDOUT) end