Dokumentation hinzugefügt

annotation gem installiert und Dokumentation in app/doc eingefügt
This commit is contained in:
Andreas Stephanides
2013-07-23 13:50:03 +02:00
parent 66eef0f198
commit 0216dbdaae
80 changed files with 11110 additions and 1 deletions

View File

@@ -1,3 +1,19 @@
# == Schema Information
#
# Table name: beispiele
#
# id :integer not null, primary key
# name :string(255)
# desc :text
# lva_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# file_file_name :string(255)
# file_content_type :string(255)
# file_file_size :integer
# file_updated_at :datetime
#
class Beispiel < ActiveRecord::Base
has_paper_trail
attr_accessible :desc, :name, :file, :lva_id

View File

@@ -1,4 +1,19 @@
##
# == Schema Information
#
# Table name: lvas
#
# id :integer not null, primary key
# name :string(255)
# desc :text
# ects :decimal(, )
# lvanr :string(255)
# stunden :decimal(, )
# created_at :datetime not null
# updated_at :datetime not null
# modul_id :integer
# semester_id :integer
#
# == Information
# Author:: Andreas Stephanides
# License:: GPL
# Dieses Model repräsentiert eine LVA. Die notwendigen Informationen können mit TISS (dem Online System der TU Wien) synchronisiert werden

View File

@@ -1,3 +1,15 @@
# == Schema Information
#
# Table name: moduls
#
# id :integer not null, primary key
# name :string(255)
# desc :text
# depend :text
# created_at :datetime not null
# updated_at :datetime not null
#
class Modul < ActiveRecord::Base
attr_accessible :desc,:name, :depend, :studium_id, :modulgruppe_ids

View File

@@ -1,3 +1,17 @@
# == Schema Information
#
# Table name: modulgruppen
#
# id :integer not null, primary key
# typ :string(255)
# phase :integer
# name :string(255)
# desc :text
# studium_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
class Modulgruppe < ActiveRecord::Base
attr_accessible :name, :phase, :typ,:desc, :studium_id
belongs_to :studium, :foreign_key => "studium_id"

View File

@@ -1,3 +1,16 @@
# == Schema Information
#
# Table name: neuigkeiten
#
# id :integer not null, primary key
# title :string(255)
# text :text
# datum :datetime
# rubrik_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
class Neuigkeit < ActiveRecord::Base
attr_accessible :datum, :text, :title, :rubrik_id
belongs_to :author, :class_name =>'User'

View File

@@ -1,3 +1,15 @@
# == Schema Information
#
# Table name: roles
#
# id :integer not null, primary key
# name :string(255)
# resource_id :integer
# resource_type :string(255)
# created_at :datetime not null
# updated_at :datetime not null
#
class Role < ActiveRecord::Base
has_and_belongs_to_many :users, :join_table => :users_roles
belongs_to :resource, :polymorphic => true

View File

@@ -1,3 +1,15 @@
# == Schema Information
#
# Table name: rubriken
#
# id :integer not null, primary key
# name :string(255)
# desc :text
# prio :integer
# created_at :datetime not null
# updated_at :datetime not null
#
class Rubrik < ActiveRecord::Base
attr_accessible :desc, :name, :prio
has_many :neuigkeiten, :class_name => "Neuigkeit"

View File

@@ -1,3 +1,16 @@
# == Schema Information
#
# Table name: semesters
#
# id :integer not null, primary key
# name :string(255)
# nummer :integer
# studium_id :integer
# ssws :string(255)
# created_at :datetime not null
# updated_at :datetime not null
#
class Semester < ActiveRecord::Base
has_and_belongs_to_many :lvas
attr_accessible :name, :nummer, :ss, :ws

View File

@@ -1,3 +1,17 @@
# == 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"

View File

@@ -1,3 +1,29 @@
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string(255)
# failed_attempts :integer default(0)
# unlock_token :string(255)
# locked_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
class User < ActiveRecord::Base
rolify
# Include default devise modules. Others available are: