summaryrefslogtreecommitdiff
path: root/lib/rails4_migration_version.rb
blob: ae48734dfad0699a7b546229452764e2a3fddbd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# rubocop:disable Naming/FileName
# frozen_string_literal: true

# When switching to rails 5, we added migration version to all migration
# classes. This patch makes it possible to run versioned migrations
# also with rails 4

unless Gitlab.rails5?
  module ActiveRecord
    class Migration
      def self.[](version)
        Migration
      end
    end
  end
end