parent
835ef97510
commit
339a06007c
@ -0,0 +1,3 @@
|
||||
class CourseAttachment < ActiveRecord::Base
|
||||
attr_accessible :attachtype, :author_id, :content_type, :description, :digest, :disk_directory, :disk_filename, :downloads, :filename, :filesize, :integer, :is_public
|
||||
end
|
@ -0,0 +1,20 @@
|
||||
class CreateCourseAttachments < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :course_attachments do |t|
|
||||
t.string :filename
|
||||
t.string :disk_filename
|
||||
t.integer :filesize
|
||||
t.string :content_type
|
||||
t.string :digest
|
||||
t.integer :downloads
|
||||
t.string :author_id
|
||||
t.string :integer
|
||||
t.string :description
|
||||
t.string :disk_directory
|
||||
t.integer :attachtype
|
||||
t.integer :is_public
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue