blob: e460612a7d5a64f81aec8050a28618a59261f18d (
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 DropInt4ColumnForEvents do
let(:events) { table(:events) }
it 'correctly migrates up and down' do
reversible_migration do |migration|
migration.before -> {
expect(events.column_names).to include('id_convert_to_bigint')
}
migration.after -> {
events.reset_column_information
expect(events.column_names).not_to include('id_convert_to_bigint')
}
end
end
end
|