Skip to content

Instantly share code, notes, and snippets.

@strika
Created September 3, 2014 14:07
Show Gist options
  • Save strika/9d3ee478e9afa51bdea6 to your computer and use it in GitHub Desktop.
Save strika/9d3ee478e9afa51bdea6 to your computer and use it in GitHub Desktop.
Database setup debugger
require "yaml"
ROOT = File.expand_path('..', File.dirname(__FILE__))
puts "Project root: #{ROOT}"
db_file = File.join(ROOT, "config", "database.yml")
puts "database.yml path: #{db_file}"
db_configuration = YAML.load_file(db_file)
puts "Database configuration:"
puts db_configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment