OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/db/migrate/20130807083715_create_attac...

19 lines
966 B

class CreateAttachmentJournals < ActiveRecord::Migration
def change
create_table :attachment_journals do |t|
t.integer :journal_id, :null => false
t.integer :container_id, :default => 0, :null => false
t.string :container_type, :limit => 30, :default => "", :null => false
t.string :filename, :default => "", :null => false
t.string :disk_filename, :default => "", :null => false
t.integer :filesize, :default => 0, :null => false
t.string :content_type, :default => ""
t.string :digest, :limit => 40, :default => "", :null => false
t.integer :downloads, :default => 0, :null => false
t.integer :author_id, :default => 0, :null => false
t.datetime :created_on
t.string :description
end
end
end