소스 검색

Add indexes

tags/last-sinatra-version
Adrian Short 12 년 전
부모
커밋
6b388b1242
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      models.rb

+ 2
- 2
models.rb 파일 보기

@@ -61,7 +61,7 @@ class Candidate


property :id, Serial property :id, Serial
property :forenames, String, :required => true property :forenames, String, :required => true
property :surname, String, :required => true
property :surname, String, :required => true, :index => true
property :sex, String property :sex, String
has n, :candidacies has n, :candidacies
@@ -100,7 +100,7 @@ class Election


property :id, Serial property :id, Serial
property :body_id, Integer, :required => true property :body_id, Integer, :required => true
property :d, Date, :required => true
property :d, Date, :required => true, :index => true
property :reason, String, :length => 255 property :reason, String, :length => 255
property :kind, String, :length => 255 property :kind, String, :length => 255


불러오는 중...
취소
저장