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

Version Path
pact_broker-2.7.0.beta.1 lib/pact_broker/db/migrate.rb
pact_broker-2.6.0 lib/pact_broker/db/migrate.rb
pact_broker-2.5.1 lib/pact_broker/db/migrate.rb
pact_broker-2.5.0 lib/pact_broker/db/migrate.rb
pact_broker-2.4.2 lib/pact_broker/db/migrate.rb
pact_broker-2.4.1 lib/pact_broker/db/migrate.rb
pact_broker-2.4.0 lib/pact_broker/db/migrate.rb
pact_broker-2.3.0 lib/pact_broker/db/migrate.rb
pact_broker-2.2.0 lib/pact_broker/db/migrate.rb
pact_broker-2.1.1 lib/pact_broker/db/migrate.rb
pact_broker-2.1.0 lib/pact_broker/db/migrate.rb