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