blob: 5c39e7530ffb9db759f32879cb49f854ac255b9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
require 'spec_helper'
require_migration!
RSpec.describe DropInt4ColumnForPushEventPayloads, feature_category: :users do
let(:push_event_payloads) { table(:push_event_payloads) }
it 'correctly migrates up and down' do
reversible_migration do |migration|
migration.before -> {
expect(push_event_payloads.column_names).to include('event_id_convert_to_bigint')
}
migration.after -> {
push_event_payloads.reset_column_information
expect(push_event_payloads.column_names).not_to include('event_id_convert_to_bigint')
}
end
end
end
|