瀏覽代碼

Add indexes

tags/last-sinatra-version
Adrian Short 11 年之前
父節點
當前提交
6b388b1242
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      models.rb

+ 2
- 2
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


Loading…
取消
儲存