blob: 9bfbf35887d500b5fca49056a083bd281cce71e3 (
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
|
# frozen_string_literal: true
module Gitlab
module Database
module Migrations
module Observers
class MigrationObserver
attr_reader :connection
def initialize
@connection = ActiveRecord::Base.connection
end
def before
# implement in subclass
end
def after
# implement in subclass
end
def record(observation)
raise NotImplementedError, 'implement in subclass'
end
end
end
end
end
end
|