Skip to content

Instantly share code, notes, and snippets.

View MarkoZabcic's full-sized avatar

Marko Zabcic MarkoZabcic

View GitHub Profile
# mongo_template.rb
# MongoDB FTW!
db_name = ask('What should I call the database? ')
initializer 'database.rb', <<-CODE
MongoMapper.database = "#{db_name}-\#{Rails.env}"
CODE
file 'config/database.yml', <<-CODE