Created
May 29, 2009 04:44
-
-
Save jdunphy/119787 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ENV['DATABASE_URL'] | |
::DB = Sequel.sqlite(ENV['DATABASE_URL']) | |
else | |
dbfile = File.dirname(__FILE__) + "/db/#{env}.sqlite3" | |
FileUtils.touch(dbfile) | |
::DB = Sequel.sqlite(dbfile) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment