diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-06 03:42:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-06 03:42:21 +0200 |
commit | eb5ac234342db46c881d8e69644d3292b5eabb54 (patch) | |
tree | aed8b80a3a5d2c4520d41edef9ff98fe5a76ade2 /lib/tasks | |
parent | a5143df3035ca34990ab5e800087bd1586551b1f (diff) |
Clean up code style of Mastodon::TimestampId module (#5232)
* Clean up code style of Mastodon::TimestampId module * Update brakeman config
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/db.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 66468d999..6af6bb6fb 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -20,10 +20,10 @@ def each_schema_load_environment if Rails.env == 'development' test_conf = ActiveRecord::Base.configurations['test'] + if test_conf['database']&.present? ActiveRecord::Base.establish_connection(:test) yield - ActiveRecord::Base.establish_connection(Rails.env.to_sym) end end |