diff --git a/models.rb b/models.rb index da8b2e9..cb2d8ba 100644 --- a/models.rb +++ b/models.rb @@ -90,8 +90,7 @@ class Candidate property :id, Serial property :forenames, String, :required => true property :surname, String, :required => true, :index => true - property :sex, String - + has n, :candidacies def short_name diff --git a/scripts/merge-candidates.rb b/scripts/merge-candidates.rb index 98d5d5c..32084ed 100644 --- a/scripts/merge-candidates.rb +++ b/scripts/merge-candidates.rb @@ -5,7 +5,7 @@ def show_candidate(id) template = "%6s\t%50s\t%20s\t%3s" - puts template % [ c.id, c.forenames, c.surname, c.sex ] + puts template % [ c.id, c.forenames, c.surname ] ccy_template = "%20s\t%15s\t%20s\t%20s" c.candidacies.each do |ccy|