database_test.rake 233 B

12345678910
  1. namespace :database_test do
  2. desc "Ping the database"
  3. task :ping do
  4. require 'active_record'
  5. require 'mysql2'
  6. require 'pg'
  7. ActiveRecord::Base.establish_connection
  8. ActiveRecord::Base.connection.verify!
  9. end
  10. end