Sha256: caeac299cf342f8d50be1c6f738d612b53afb8eab2a60b511b76ca5c6684127c
Contents?: true
Size: 533 Bytes
Versions: 20
Compression:
Stored size: 533 Bytes
Contents
# frozen_string_literal: true module SolidusSupport module Migration def self.[](version) if Rails.gem_version >= Gem::Version.new('5.x') ActiveRecord::Migration[version] else # Rails < 5 doesn't support specifying rails version of migrations, but # it _is_ rails 4.2, so we can use that when requested. return ActiveRecord::Migration if version.to_s == '4.2' raise ArgumentError, "Unknown migration version '#{version}'; expected one of '4.2'" end end end end
Version data entries
20 entries across 20 versions & 1 rubygems