瀏覽代碼

Renamed sqlite db files and ignored them

tags/last-sinatra-version
Adrian Short 13 年之前
父節點
當前提交
c4983cdd1d
共有 2 個檔案被更改,包括 2 行新增4 行删除
  1. +1
    -3
      .gitignore
  2. +1
    -1
      lib/models.rb

+ 1
- 3
.gitignore 查看文件

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

*.db

+ 1
- 1
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!

Loading…
取消
儲存