aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/104_create_foi_attachments.rb
blob: c53cd4f64a2b89f26f9f2d049950b901abf9b089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class CreateFoiAttachments < ActiveRecord::Migration
    def self.up
        create_table :foi_attachments do |t|
            t.column :content_type, :text
            t.column :filename, :text
            t.column :charset, :text
            t.column :display_size, :text
            t.column :url_part_number, :integer
            t.column :within_rfc822_subject, :text            
            t.column :incoming_message_id, :integer
        end
    end

    def self.down
        drop_table :foi_attachments
    end
end