0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
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-baa5914c0c)
2020-01-09 17:08:55 +01:00

11 lines
338 B
Ruby
Vendored

# 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