about summary refs log tree commit diff
path: root/db/migrate/20170507000211_add_conversation_id_to_statuses.rb
blob: d1ef7c2905c76f0ba7b771cae8677d082515326c (plain) (blame)
1
2
3
4
5
6
class AddConversationIdToStatuses < ActiveRecord::Migration[5.0]
  def change
    add_column :statuses, :conversation_id, :bigint, null: true, default: nil
    add_index :statuses, :conversation_id
  end
end