blob: 0006af73f6c078646e6133f05c2a55f89bce42fd (
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)
@connection = 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
|