gitlab-org--gitlab-foss/lib/rails4_migration_version.rb
Jan Provaznik 4c6073974c Add version migration support to rails 4
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
2018-11-22 13:17:55 +01:00

16 lines
364 B
Ruby

# 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