Skip to content

Commit

Permalink
chore: remove saas code
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 7, 2018
1 parent 19d5ee1 commit 6691396
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'pact_broker', path: '..'
gem 'pact_broker'
gem 'sqlite3', '~>1.3' # Sqlite is just for testing, replace this with your choice of database driver
# gem 'pg' # Recommended production gem for postgres
gem 'thin', '~>1.7' # Keep, or replace with your choice of web server
3 changes: 1 addition & 2 deletions lib/pact_broker/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def self.connection

def self.run_migrations database_connection
Sequel.extension :migration
options = { allow_missing_migration_files: true }
Sequel::TimestampMigrator.new(database_connection, PactBroker::DB::MIGRATIONS_DIR, options).run
Sequel::TimestampMigrator.new(database_connection, PactBroker::DB::MIGRATIONS_DIR).run
end

def self.validate_connection_config
Expand Down
3 changes: 1 addition & 2 deletions lib/pact_broker/db/migrate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ module DB
class Migrate
def self.call database_connection, options = {}
db_migrations_dir = PactBroker.project_root.join('db','migrations')
default_options = { allow_missing_migration_files: true }
puts "Running migrations in directory #{db_migrations_dir}, target=#{options.fetch(:target, 'end')}"
Sequel::TimestampMigrator.new(database_connection, db_migrations_dir, default_options.merge(options)).run
Sequel::TimestampMigrator.new(database_connection, db_migrations_dir, options).run
end
end
end
Expand Down

0 comments on commit 6691396

Please sign in to comment.