summaryrefslogtreecommitdiff
path: root/db/migrate/20140427171548_create_pms.rb
blob: eb9f44369ccc35100c9d3b26b0879c7e7214fa92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class CreatePms < ActiveRecord::Migration
  def change
    create_table :pms do |t|
      t.references :author, index: true
      t.references :recipient, index: true
      t.text :message
      t.text :subject
      t.references :conversation, index: true

      t.timestamps
    end
  end
end