blob: 6b6fb553b1f19e8a341f46b232d1a255be905872 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
require 'spec_helper'
require_migration!
RSpec.describe AddIndexOnPasswordLastChangedAtToUserDetails, :migration, feature_category: :users 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
|