浏览代码

Remove unused ward table

tags/last-sinatra-version
Adrian Short 8 年前
父节点
当前提交
3f7ac15ebd
共有 1 个文件被更改,包括 0 次插入13 次删除
  1. +0
    -13
      models.rb

+ 0
- 13
models.rb 查看文件

@@ -237,18 +237,5 @@ class Party
has n, :campaigns
end

class Ward
include DataMapper::Resource

property :id, Serial
property :slug, String, :required => true
property :ons_id, String, :required => true
property :name, String, :required => true

def self.slugify(name)
name.gsub(/[^\w\s-]/, '').gsub(/\s+/, '-').downcase
end
end

DataMapper.setup(:default, ENV['DATABASE_URL'] || "postgres://postgres@localhost:5432/suttonelections")
DataMapper.auto_upgrade!

正在加载...
取消
保存