24 lines
644 B
Ruby
Executable File
24 lines
644 B
Ruby
Executable File
# == 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
|
|
has_attached_file :file
|
|
belongs_to :lva
|
|
translates :desc, :fallbacks_for_empty_translations => true
|
|
end
|