annotate db/migrate/20110227125750_change_journal_details_values_to_text.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 051f544170fe
children
rev   line source
Chris@245 1 class ChangeJournalDetailsValuesToText < ActiveRecord::Migration
Chris@245 2 def self.up
Chris@245 3 change_column :journal_details, :old_value, :text
Chris@245 4 change_column :journal_details, :value, :text
Chris@245 5 end
Chris@245 6
Chris@245 7 def self.down
Chris@245 8 change_column :journal_details, :old_value, :string
Chris@245 9 change_column :journal_details, :value, :string
Chris@245 10 end
Chris@245 11 end