Sha256: 112ce4b8607e0db08fbc2c5c0b156cca6b4cadea6591ef585c8b994be78958a5
Contents?: true
Size: 487 Bytes
Versions: 41
Compression:
Stored size: 487 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::TimestampMigrator.new(database_connection, db_migrations_dir, options).run end end end end
Version data entries
41 entries across 41 versions & 1 rubygems