19 lines
589 B
Ruby
19 lines
589 B
Ruby
module Baclight
|
|
class DocumentUpload < BaclightRecord
|
|
|
|
self.table_name = 'document_uploads'
|
|
|
|
alias_attribute :id, :id
|
|
alias_attribute :filename, :filename
|
|
alias_attribute :file_type, :file_type
|
|
alias_attribute :file_data, :file_data
|
|
alias_attribute :pl_plan_key, :pl_plan_key
|
|
alias_attribute :active, :active
|
|
alias_attribute :category_id, :category_id
|
|
alias_attribute :created_at, :created_at
|
|
alias_attribute :updated_at, :updated_at
|
|
|
|
belongs_to :document_category, class_name: "Baclight::DocumentUpload", foreign_key: "category_id"
|
|
|
|
end
|
|
end |