Sha256: da4e50894c43d8b09e76baad13fb1defa1943073f11db11de64ec6d257273fbb
Contents?: true
Size: 487 Bytes
Versions: 4
Compression:
Stored size: 487 Bytes
Contents
module Storey class GetMigrationVersions def self.call(schema = nil) return migration_versions if schema.nil? Storey.switch(schema) { migration_versions } end private def self.migration_versions if Gem::Version.new(ActiveRecord::VERSION::STRING) < Gem::Version.new("5.2") ::ActiveRecord::Migrator.get_all_versions else ::ActiveRecord::Base.connection.migration_context. get_all_versions end end end end
Version data entries
4 entries across 4 versions & 1 rubygems