From 6b388b12428a7d2d19ae3ae50f485ec40fa19b98 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sat, 30 Nov 2013 15:12:09 +0000 Subject: [PATCH] Add indexes --- models.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models.rb b/models.rb index 0115131..39cf8a2 100644 --- a/models.rb +++ b/models.rb @@ -61,7 +61,7 @@ class Candidate property :id, Serial property :forenames, String, :required => true - property :surname, String, :required => true + property :surname, String, :required => true, :index => true property :sex, String has n, :candidacies @@ -100,7 +100,7 @@ class Election property :id, Serial property :body_id, Integer, :required => true - property :d, Date, :required => true + property :d, Date, :required => true, :index => true property :reason, String, :length => 255 property :kind, String, :length => 255