Pārlūkot izejas kodu

Add indexes

tags/last-sinatra-version
Adrian Short pirms 12 gadiem
vecāks
revīzija
6b388b1242
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      models.rb

+ 2
- 2
models.rb Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt