瀏覽代碼

Use postgres for dev database

tags/last-sinatra-version
Adrian Short 11 年之前
父節點
當前提交
1a27c89b11
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      models.rb

+ 1
- 1
models.rb 查看文件

@@ -221,5 +221,5 @@ class Constituency
has n, :parliamentcandidates, :order => ['surname']
end

DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/db/suttonelections.db")
DataMapper.setup(:default, ENV['DATABASE_URL'] || "postgres://postgres@localhost:5432/suttonelections")
DataMapper.auto_upgrade!

Loading…
取消
儲存