blob: 106f8f1f82963eac402ec90d034d5182a8fb6527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# frozen_string_literal: true
module Gitlab
module Database
module Migrations
module Observers
class MigrationObserver
attr_reader :connection, :observation, :output_dir
def initialize(observation, output_dir)
@connection = ActiveRecord::Base.connection
@observation = observation
@output_dir = output_dir
end
def before
# implement in subclass
end
def after
# implement in subclass
end
def record
raise NotImplementedError, 'implement in subclass'
end
end
end
end
end
end
|