Sha256: 20438ee8c49c4c0e5409aaa121da1603ebedc55a4564e0f65a37df2997063dae

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

require 'sequel'

module PactBroker
  module DB

    MIGRATIONS_DIR = File.expand_path("../../../db/migrations", __FILE__)

    def self.run_migrations database_connection
      Sequel.extension :migration
      Sequel::Migrator.run(database_connection, PactBroker::DB::MIGRATIONS_DIR)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pact_broker-1.0.0 lib/pact_broker/db.rb
pact_broker-1.0.0.alpha3 lib/pact_broker/db.rb
pact_broker-1.0.0.alpha2 lib/pact_broker/db.rb
pact_broker-1.0.0.alpha1 lib/pact_broker/db.rb