Browse Source

Renamed sqlite db files and ignored them

tags/last-sinatra-version
Adrian Short 13 years ago
parent
commit
c4983cdd1d
2 changed files with 2 additions and 4 deletions
  1. +1
    -3
      .gitignore
  2. +1
    -1
      lib/models.rb

+ 1
- 3
.gitignore View File

@@ -1,3 +1 @@
db.sqlite3
db.sqlite3.copy

*.db

+ 1
- 1
lib/models.rb View File

@@ -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!

Loading…
Cancel
Save