debian-mirror-gitlab/spec/migrations/20221028022627_add_index_on_password_last_changed_at_to_user_details_spec.rb
2023-04-23 21:23:45 +05:30

17 lines
472 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
require_migration!
RSpec.describe AddIndexOnPasswordLastChangedAtToUserDetails, :migration, feature_category: :user_profile do
let(:index_name) { 'index_user_details_on_password_last_changed_at' }
it 'correctly migrates up and down' do
expect(subject).not_to be_index_exists_by_name(:user_details, index_name)
migrate!
expect(subject).to be_index_exists_by_name(:user_details, index_name)
end
end