Browse Source

Use postgres for dev database

tags/last-sinatra-version
Adrian Short 11 years ago
parent
commit
1a27c89b11
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models.rb

+ 1
- 1
models.rb View File

@@ -221,5 +221,5 @@ class Constituency
has n, :parliamentcandidates, :order => ['surname'] has n, :parliamentcandidates, :order => ['surname']
end 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! DataMapper.auto_upgrade!

Loading…
Cancel
Save