Sha256: de3562b00ce6775550af46c57a0ef48132b7ec8dd06803198eafd3647e75489f

Contents?: true

Size: 384 Bytes

Versions: 12

Compression:

Stored size: 384 Bytes

Contents

require "db"
require "tasks/database"
require "pact_broker/db"
raise "Wrong environment!!! Don't run this script!! ENV['RACK_ENV'] is #{ENV['RACK_ENV']} and RACK_ENV is #{RACK_ENV}" if ENV["RACK_ENV"] != "test"
PactBroker::DB.connection = PactBroker::Database.database = DB::PACT_BROKER_DB

if !PactBroker::DB.is_current?(PactBroker::DB.connection)
  PactBroker::Database.migrate
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pact_broker-2.89.1 spec/support/database.rb
pact_broker-2.89.0 spec/support/database.rb
pact_broker-2.88.0 spec/support/database.rb
pact_broker-2.87.0 spec/support/database.rb
pact_broker-2.86.0 spec/support/database.rb
pact_broker-2.85.1 spec/support/database.rb
pact_broker-2.85.0 spec/support/database.rb
pact_broker-2.84.0 spec/support/database.rb
pact_broker-2.83.0 spec/support/database.rb
pact_broker-2.82.0 spec/support/database.rb
pact_broker-2.81.0 spec/support/database.rb
pact_broker-2.80.0 spec/support/database.rb