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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
wikiufc/db/migrate/001_create_attachments.rb

16 lines
341 B

class CreateAttachments < ActiveRecord::Migration
def self.up
create_table :attachments do |t|
t.column :file_name, :string
t.column :content_type, :string
t.column :last_modified, :datetime
t.column :description, :text
t.column :size, :int
end
end
def self.down
drop_table :attachments
end
end