Permalink
Browse files

really activerecord?

  • Loading branch information...
1 parent 4c83da3 commit c9031bbd29674bfe70f18392745599d65f3bcb40 Joshua Stauter committed Apr 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.php
View
@@ -6,7 +6,7 @@ class Todo extends ActiveRecord\Model { }
ActiveRecord\Config::initialize(function($cfg) {
//$cfg->set_connections(array('development' => 'mysql://root:@localhost/todos'));
- $cfg->set_connections(array('development' => $_ENV['DATABASE_URL']));
+ $cfg->set_connections(array('development' => str_replace('postgres://', 'pgsql://', $_ENV['DATABASE_URL'])));
});

0 comments on commit c9031bb

Please sign in to comment.