retrospring/db/migrate/20211228135426_add_indexes_to_notifications.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
196 B
Ruby
Raw Normal View History

2023-10-20 01:37:34 +02:00
# frozen_string_literal: true
class AddIndexesToNotifications < ActiveRecord::Migration[5.2]
def change
add_index :notifications, :recipient_id
add_index :notifications, :new
end
end