thema linked tu gremium

This commit is contained in:
Andreas Stephanides
2013-09-30 21:17:35 +02:00
parent 46489efe45
commit 5c4bc925e6

View File

@@ -15,7 +15,7 @@ class Thema < ActiveRecord::Base
has_many :fragen
has_many :attachments
belongs_to :themengruppe, :foreign_key => "themengruppe_id"
has_one :gremium
validates :themengruppe, :presence => true
validates :title, :presence => true