gremien mitgliedschaften bearbeiten.

This commit is contained in:
Andreas Stephanides
2013-11-12 22:04:57 +01:00
parent 3f6734d51e
commit d1ae7b7da5
7 changed files with 53 additions and 5 deletions

View File

@@ -18,5 +18,7 @@ class Membership < ActiveRecord::Base
belongs_to :fetprofile
belongs_to :gremium
scope :active, -> {where("stop >= ? OR stop IS NULL", Time.now.to_date)}
validates :typ, :presence=>true
validates :fetprofile, :presence=>true
validates :start, :presence=>true
end