~cytrogen/masto-fe

ref: 56c0babc0bacf6f8e87c126e98966f0afa6ab467 masto-fe/db/migrate/20180510230049_migrate_web_push_subscriptions.rb -rw-r--r-- 427 bytes
56c0babc — Matt Jankowski Fix rubocop `Layout/ArgumentAlignment` cop (#26060) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class MigrateWebPushSubscriptions < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

  def up
    add_index :web_push_subscriptions, :user_id, algorithm: :concurrently
    add_index :web_push_subscriptions, :access_token_id, algorithm: :concurrently
  end

  def down
    remove_index :web_push_subscriptions, :user_id
    remove_index :web_push_subscriptions, :access_token_id
  end
end