Verwaltungsübersicht

This commit is contained in:
Thomas Blazek
2013-08-07 22:07:08 +02:00
parent a92ff60718
commit 5c36eb55a3
5 changed files with 185 additions and 129 deletions

View File

@@ -12,7 +12,7 @@
# created_at :datetime not null
# updated_at :datetime not null
class Studium < ActiveRecord::Base
attr_accessible :desc, :name, :typ, :zahl
attr_accessible :desc, :name, :typ, :zahl, :semester
has_many :modulgruppen, inverse_of: :studium, :class_name => "Modulgruppe", :dependent => :destroy
has_many :semester, :dependent => :destroy