class DoctorStrange::Providers::Database
Public Instance Methods
check!()
click to toggle source
# File lib/doctor_strange/providers/database.rb, line 8 def check! # Check connection to the DB: ActiveRecord::Base.establish_connection # Establishes connection ActiveRecord::Base.connection # Calls connection object raise DatabaseException.new("Your database is not connected") unless ActiveRecord::Base.connected? end