collab/db/migrate/20100316041234_add_attachments_attachment_to_asset.rb

16 lines
538 B
Ruby
Raw Normal View History

2010-03-16 04:37:29 +00:00
class AddAttachmentsAttachmentToAsset < ActiveRecord::Migration
def self.up
add_column :assets, :attachment_file_name, :string
add_column :assets, :attachment_content_type, :string
add_column :assets, :attachment_file_size, :integer
add_column :assets, :attachment_updated_at, :datetime
end
def self.down
remove_column :assets, :attachment_file_name
remove_column :assets, :attachment_content_type
remove_column :assets, :attachment_file_size
remove_column :assets, :attachment_updated_at
end
end