From 05a7af100a93a452cf27fe97410e3649d8172872 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 23 Apr 2014 13:27:40 +0100 Subject: [PATCH] Add column default --- models.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.rb b/models.rb index f2757dc..e20c0e4 100644 --- a/models.rb +++ b/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