discourse/db/migrate/20200109130028_update_user_profiles_indexes.rb
Jarek Radosz 531016f99b
DEV: Add missing indexes to user_profiles (#8691)
* DEV: Update model annotations
* DEV: Add missing indexes to user_profiles

The columns were changed in 24347ace10 (diff-baa5914c0c7cddf3c8b5cd9139e0d091)
2020-01-09 17:08:55 +01:00

12 lines
338 B
Ruby

# 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