forked from bofh/fetsite
21 lines
601 B
Ruby
Executable File
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
|