annotate db/migrate/20101123161346_create_ssamr_user_details.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 1d072f771b4d
children
rev   line source
luisf@56 1 class CreateSsamrUserDetails < ActiveRecord::Migration
luisf@56 2 def self.up
luisf@56 3 create_table :ssamr_user_details do |t|
luisf@56 4 t.integer :user_id
luisf@56 5 t.text :description
luisf@56 6 t.text :university
luisf@56 7 end
luisf@56 8 end
luisf@56 9
luisf@56 10 def self.down
luisf@56 11 drop_table :ssamr_user_details
luisf@56 12 end
luisf@56 13
luisf@56 14 end