Skip to content

Instantly share code, notes, and snippets.

@esparkman
Created September 8, 2010 19:52
Show Gist options
  • Select an option

  • Save esparkman/570717 to your computer and use it in GitHub Desktop.

Select an option

Save esparkman/570717 to your computer and use it in GitHub Desktop.
puts "What would you like the name of the new database to be?"
db_name = gets.chomp
dbh.query('CREATE DATABASE #{db_name}')
puts "#{dbh.affected_rows}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment