Browse Source

Remove unused ward table

tags/last-sinatra-version
Adrian Short 8 years ago
parent
commit
3f7ac15ebd
1 changed files with 0 additions and 13 deletions
  1. +0
    -13
      models.rb

+ 0
- 13
models.rb View File

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

Loading…
Cancel
Save