Sha256: c22a90461e1371898d7083e8e842e2fee09a44f3e3a89f00d7825a9b66c582ab
Contents?: true
Size: 557 Bytes
Versions: 3
Compression:
Stored size: 557 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 ActiveRecord::Base.connection.uncached do 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
storey-2.2.0 | lib/storey/get_migration_versions.rb |
storey-2.1.2 | lib/storey/get_migration_versions.rb |
storey-2.1.1 | lib/storey/get_migration_versions.rb |