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