Skip to content

Commit

Permalink
remove heroku db
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Stauter committed Apr 15, 2012
1 parent 6f8cf22 commit c2d830a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.php
Expand Up @@ -5,8 +5,7 @@
class Todo extends ActiveRecord\Model { } class Todo extends ActiveRecord\Model { }


ActiveRecord\Config::initialize(function($cfg) { ActiveRecord\Config::initialize(function($cfg) {
//$cfg->set_connections(array('development' => 'mysql://root:@localhost/todos')); $cfg->set_connections(array('development' => 'mysql://root:@localhost/todos'));
$cfg->set_connections(array('development' => str_replace('postgres://', 'pgsql://', $_ENV['DATABASE_URL'])));
}); });




Expand Down

0 comments on commit c2d830a

Please sign in to comment.