Sha256: e17d55d6c4dd3d4e924618c752036dddff9c2e1bbd752f59000a2845021daba1
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
require 'sequel/extensions/migration' module Legion module Data module Migration class << self def migrate(connection = Legion::Data.connection, path = __dir__ + '/migrations') Legion::Settings[:data][:migrations][:version] = Sequel::Migrator.run(connection, path) Legion::Logging.info 'Legion::Data::Migration ran successfully to version ' + Legion::Settings[:data][:migrations][:version].to_s # rubocop:disable Layout/LineLength Legion::Settings[:data][:migrations][:ran] = true end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
legion-data-0.2.0 | lib/legion/data/migration.rb |