blob: 5f8467f930745ac11d6b0701d3862c64d744b1be (
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 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
|