aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/009_create_outgoing_messages.rb
blob: 62bf253927898e8c8f237c338ea2d5f675dd53d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class CreateOutgoingMessages < ActiveRecord::Migration
  def self.up
    create_table :outgoing_messages do |t|
      t.column :info_request_id, :integer

      t.column :body, :text
      t.column :status, :string

      t.column :public_body_id, :integer
      t.column :message_type, :string

      t.column :created_at, :datetime
      t.column :updated_at, :datetime
    end
  end

  def self.down
    drop_table :outgoing_messages
  end
end