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