Sha256: 1dd0516682a1443f26cd5da51bd71fd29a77fde998af1f5ee1b7a7ca62530c40
Contents?: true
Size: 584 Bytes
Versions: 7
Compression:
Stored size: 584 Bytes
Contents
require 'sequel/extensions/migration' module Legion module Data module Migration class << self def migrate(connection = Legion::Data.connection, path = "#{__dir__}/migrations", **opts) Legion::Settings[:data][:migrations][:version] = Sequel::Migrator.run(connection, path, **opts) Legion::Logging.info("Legion::Data::Migration ran successfully to version #{Legion::Settings[:data][:migrations][:version]}") # rubocop:disable Layout/LineLength Legion::Settings[:data][:migrations][:ran] = true end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems