From 3f7ac15ebd30c8b04f41711629f5f2bb0b1ae6f0 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 1 Aug 2016 16:11:42 +0100 Subject: [PATCH] Remove unused ward table --- models.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/models.rb b/models.rb index fee856d..86fe5b6 100644 --- a/models.rb +++ b/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!