discourse/db/migrate/20200109130028_update_user_profiles_indexes.rb

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

12 lines
338 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class UpdateUserProfilesIndexes < ActiveRecord::Migration[6.0]
def change
remove_index :user_profiles, :card_background
add_index :user_profiles, :card_background_upload_id
remove_index :user_profiles, :profile_background
add_index :user_profiles, :profile_background_upload_id
end
end