blob: 6b0c3a6db9aad6b1a0bb0cc0b3748e0a9d89b5c1 (
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 DropInt4ColumnForCiSourcesPipelines, feature_category: :pipeline_authoring do
let(:ci_sources_pipelines) { table(:ci_sources_pipelines) }
it 'correctly migrates up and down' do
reversible_migration do |migration|
migration.before -> {
expect(ci_sources_pipelines.column_names).to include('source_job_id_convert_to_bigint')
}
migration.after -> {
ci_sources_pipelines.reset_column_information
expect(ci_sources_pipelines.column_names).not_to include('source_job_id_convert_to_bigint')
}
end
end
end
|