annotate db/migrate/20110207142856_add_ext_rep_to_repositories.rb @ 599:251b380117ce feature_227

Introduce a new latest_downloads plugin to manage active and shortcut for attachments. Add a table for attachment active/shortcut data. Move existing active-handler code into the new plugin (but still using the "old" active column in the attachments table). Note the files_controller stuff doesn't actually work here.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 16 Aug 2011 17:01:19 +0100
parents 11661511fc20
children
rev   line source
luis@202 1 class AddExtRepToRepositories < ActiveRecord::Migration
luis@202 2 def self.up
luis@202 3 add_column :repositories, :is_external, :bool
luis@202 4 add_column :repositories, :external_url, :string
luis@202 5 end
luis@202 6
luis@202 7 def self.down
luis@202 8 remove_column :repositories, :is_external
luis@202 9 remove_column :repositories, :external_url
luis@202 10 end
luis@202 11 end