Files
fetsite/app/models/studium.rb
Andreas Stephanides 0216dbdaae Dokumentation hinzugefügt
annotation gem installiert und Dokumentation in app/doc eingefügt
2013-07-23 13:50:03 +02:00

21 lines
601 B
Ruby
Executable File

# == Schema Information
#
# Table name: studien
#
# id :integer not null, primary key
# zahl :string(255)
# name :string(255)
# shortdesc :text
# desc :text
# typ :string(255)
# created_at :datetime not null
# updated_at :datetime not null
#
class Studium < ActiveRecord::Base
attr_accessible :desc, :name, :typ, :zahl
has_many :modulgruppen, inverse_of: :studium, :class_name => "Modulgruppe"
validates :zahl, :uniqueness => true
translates :desc,:shortdesc, :versioning =>true,:fallbacks_for_empty_translations => true
end