瀏覽代碼

Add column default

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

+ 1
- 1
models.rb 查看文件

@@ -88,7 +88,7 @@ class Candidacy
property :postcode, String
property :position, Integer # Position of this candidate in this district. (1..n)
property :seats, Integer # Number of seats won by this candidacy (0 or 1)
property :labcoop, Boolean # Candidacy is for joint Labour/Co-op party
property :labcoop, Boolean, :default => false # Candidacy is for joint Labour/Co-op party

belongs_to :election
belongs_to :candidate


Loading…
取消
儲存