debian-mirror-gitlab/lib/rails4_migration_version.rb

17 lines
364 B
Ruby
Raw Normal View History

2018-12-23 12:14:25 +05:30
# 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