File tree 5 files changed +3
-5
lines changed
5 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 75
75
env :
76
76
RAILS_VERSION : ${{ matrix.rails }}
77
77
DATABASE_URL : ${{ matrix.adapter }}
78
- SECONDARY_DATABASE_URL : ${{ matrix.adapter }}
78
+ SECONDARY_DATABASE_URL : ${{ matrix.adapter }}_secondary
79
79
BUNDLE_GEMFILE : gemfiles/${{ matrix.rails }}.gemfile
80
80
WITH_ADVISORY_LOCK_PREFIX : ${{ github.run_id }}
81
81
run : bin/rake
Original file line number Diff line number Diff line change 64
64
env :
65
65
RAILS_VERSION : ${{ matrix.rails }}
66
66
DATABASE_URL : ${{ matrix.adapter }}
67
- SECONDARY_DATABASE_URL : ${{ matrix.adapter }}
67
+ SECONDARY_DATABASE_URL : ${{ matrix.adapter }}_secondary
68
68
BUNDLE_GEMFILE : gemfiles/${{ matrix.rails }}.gemfile
69
69
WITH_ADVISORY_LOCK_PREFIX : ${{ github.run_id }}
70
70
run : bin/rake
Original file line number Diff line number Diff line change 67
67
env :
68
68
RAILS_VERSION : ${{ matrix.rails }}
69
69
DATABASE_URL : ${{ matrix.adapter }}
70
- SECONDARY_DATABASE_URL : ${{ matrix.adapter }}
70
+ SECONDARY_DATABASE_URL : ${{ matrix.adapter }}_secondary
71
71
BUNDLE_GEMFILE : gemfiles/${{ matrix.rails }}.gemfile
72
72
WITH_ADVISORY_LOCK_PREFIX : ${{ github.run_id }}
73
73
run : bin/rake
Original file line number Diff line number Diff line change 38
38
ActiveRecord ::Migration . verbose = false
39
39
ActiveRecord ::Base . table_name_prefix = ENV [ 'DB_PREFIX' ] . to_s
40
40
ActiveRecord ::Base . table_name_suffix = ENV [ 'DB_SUFFIX' ] . to_s
41
- ActiveRecord ::Base . establish_connection
42
41
43
42
def env_db
44
43
@env_db ||= ActiveRecord ::Base . connection_db_config . adapter . to_sym
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ def env_db
31
31
ActiveRecord ::Migration . verbose = false
32
32
ActiveRecord ::Base . table_name_prefix = ENV [ 'DB_PREFIX' ] . to_s
33
33
ActiveRecord ::Base . table_name_suffix = ENV [ 'DB_SUFFIX' ] . to_s
34
- ActiveRecord ::Base . establish_connection
35
34
36
35
# Use in specs to skip some tests
37
36
def sqlite?
You can’t perform that action at this time.
0 commit comments