Sha256: 372c498916c1cfd9ee4c516bb75358bf419e4eacae84dab326f5c1d32106bb0b

Contents?: true

Size: 184 Bytes

Versions: 9

Compression:

Stored size: 184 Bytes

Contents

# frozen_string_literal: true

namespace :db do
  task exists: :environment do
    ActiveRecord::Base.connection
    exit 0
  rescue ActiveRecord::NoDatabaseError
    exit 1
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
playbook_ui-2.9.0 lib/tasks/db.rake
playbook_ui-2.8.9 lib/tasks/db.rake
playbook_ui-2.8.8 lib/tasks/db.rake
playbook_ui-2.8.7 lib/tasks/db.rake
playbook_ui-2.8.6 lib/tasks/db.rake
playbook_ui-2.8.5 lib/tasks/db.rake
playbook_ui-2.8.4 lib/tasks/db.rake
playbook_ui-2.8.3 lib/tasks/db.rake
playbook_ui-2.8.1 lib/tasks/db.rake