Skip to content

Instantly share code, notes, and snippets.

View dkln's full-sized avatar
🤩

Diederick Lawson dkln

🤩
View GitHub Profile
@dkln
dkln / gist:72786
Created March 2, 2009 15:06 — forked from finalist/gist:72684
Ruby on Rails 2.3 template
require 'open-uri'
require 'erb'
# Build seperate config files for each db type
CONFIG_URLS = [:mysql, :oracle, :sqlite2, :sqlite3, :postgresql, :frontbase, :ibm_db]
BASE_URL = "http://github.com/rails/rails.git/railties/configs/databases/"
app_name = "app"
socket = false
CONFIG_URLS.each do |c|