Quellcode durchsuchen

Add column default

tags/last-sinatra-version
Adrian Short vor 10 Jahren
Ursprung
Commit
05a7af100a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      models.rb

+ 1
- 1
models.rb Datei anzeigen

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


Laden…
Abbrechen
Speichern