Skip to content

Commit 05e7302

Browse files
committed
migrate to github actions
1 parent 96c72d3 commit 05e7302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
def prepare_database!
66
db = 'translateable_test_db'.freeze
77

8-
ActiveRecord::Base.establish_connection(adapter: 'postgresql', database: 'template1', username: 'postgres', password: ENV['POSTGRES_PASSWORD'])
8+
ActiveRecord::Base.establish_connection(adapter: 'postgresql', database: 'template1', username: 'postgres', password: ENV['POSTGRES_PASSWORD'], port: ENV['POSTGRES_PORT'])
99

1010
begin
1111
ActiveRecord::Base.connection.drop_database(db)
1212
rescue ActiveRecord::StatementInvalid
1313
end
1414
ActiveRecord::Base.connection.create_database(db)
1515

16-
ActiveRecord::Base.establish_connection(adapter: 'postgresql', database: db, username: 'postgres', password: ENV['POSTGRES_PASSWORD'])
16+
ActiveRecord::Base.establish_connection(adapter: 'postgresql', database: db, username: 'postgres', password: ENV['POSTGRES_PASSWORD'], port: ENV['POSTGRES_PORT'])
1717

1818
begin
1919
ActiveRecord::Base.connection.drop_table :test_models

0 commit comments

Comments
 (0)