Skip to content

Commit

Permalink
chore: update pry and seed
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Dec 2, 2020
1 parent fd80973 commit e09357f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/pry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
ENV['RACK_ENV'] = 'development'
require 'sequel'
require 'logger'
DATABASE_CREDENTIALS = {logger: Logger.new($stdout), adapter: "sqlite", database: ARGV[0], :encoding => 'utf8'}.tap { |it| puts it }
#DATABASE_CREDENTIALS = {adapter: "postgres", database: "pact_broker", username: 'pact_broker', password: 'pact_broker', :encoding => 'utf8'}
#DATABASE_CREDENTIALS = {logger: Logger.new($stdout), adapter: "sqlite", database: ARGV[0], :encoding => 'utf8'}.tap { |it| puts it }
DATABASE_CREDENTIALS = {adapter: "postgres", database: "postgres", username: 'postgres', password: 'postgres', host: "localhost", :encoding => 'utf8'}

connection = Sequel.connect(DATABASE_CREDENTIALS)
connection.timezone = :utc
Expand Down
1 change: 1 addition & 0 deletions script/seed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ENV['RACK_ENV'] = 'development'
require 'sequel'
require 'logger'
require 'stringio'
logger = Logger.new($stdout)
logger = Logger.new(StringIO.new)
DATABASE_CREDENTIALS = {logger: logger, adapter: "sqlite", database: ARGV[0], :encoding => 'utf8'}.tap { |it| puts it }
Expand Down

0 comments on commit e09357f

Please sign in to comment.