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

Version Path
pact_broker-2.30.0 lib/pact_broker/db/migrate.rb
pact_broker-2.29.0 lib/pact_broker/db/migrate.rb
pact_broker-2.27.6 lib/pact_broker/db/migrate.rb
pact_broker-2.27.5 lib/pact_broker/db/migrate.rb
pact_broker-2.27.4 lib/pact_broker/db/migrate.rb
pact_broker-2.27.3 lib/pact_broker/db/migrate.rb
pact_broker-2.27.2 lib/pact_broker/db/migrate.rb
pact_broker-2.27.0 lib/pact_broker/db/migrate.rb
pact_broker-2.26.1 lib/pact_broker/db/migrate.rb
pact_broker-2.26.0 lib/pact_broker/db/migrate.rb
pact_broker-2.25.0 lib/pact_broker/db/migrate.rb
pact_broker-2.24.0 lib/pact_broker/db/migrate.rb
pact_broker-2.23.4 lib/pact_broker/db/migrate.rb
pact_broker-2.23.3 lib/pact_broker/db/migrate.rb
pact_broker-2.23.2 lib/pact_broker/db/migrate.rb
pact_broker-2.23.1 lib/pact_broker/db/migrate.rb
pact_broker-2.23.0 lib/pact_broker/db/migrate.rb
pact_broker-2.22.0 lib/pact_broker/db/migrate.rb
pact_broker-2.21.0 lib/pact_broker/db/migrate.rb
pact_broker-2.20.0 lib/pact_broker/db/migrate.rb