Sha256: 87144126e63cfdc67e03d7cb53a10c5e23b15bac8f1f7df7399f2f6558ec9273
Contents?: true
Size: 474 Bytes
Versions: 11
Compression:
Stored size: 474 Bytes
Contents
require 'sequel' require 'pact_broker/project_root' Sequel.extension :migration module PactBroker module DB class Migrate def self.call database_connection, options = {} db_migrations_dir = PactBroker.project_root.join('db','migrations') puts "Running migrations in directory #{db_migrations_dir}, target=#{options.fetch(:target, 'end')}" Sequel::Migrator.run(database_connection, db_migrations_dir, options) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems