Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

really activerecord?

  • Loading branch information...
commit c9031bbd29674bfe70f18392745599d65f3bcb40 1 parent 4c83da3
Joshua Stauter authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.php
View
2  index.php
@@ -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'])));
});
Please sign in to comment.
Something went wrong with that request. Please try again.