From c4983cdd1d84af76b43ca92c0dd2daab883c4834 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 4 Jan 2012 21:27:29 +0000 Subject: [PATCH] Renamed sqlite db files and ignored them --- .gitignore | 4 +--- lib/models.rb | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index c558793..98e6ef6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -db.sqlite3 -db.sqlite3.copy - +*.db diff --git a/lib/models.rb b/lib/models.rb index c1852e1..2f236e1 100644 --- a/lib/models.rb +++ b/lib/models.rb @@ -120,5 +120,5 @@ class Constituency has n, :parliamentcandidates, :order => ['surname'] end -DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/db.sqlite3") +DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/suttonelections.db") DataMapper.auto_upgrade! \ No newline at end of file