Merge branch 'blackst0ne-rails5-update-ar5-pg-10-support-initializer' into 'master'
[Rails5] Update ar5_pg_10_support initializer See merge request gitlab-org/gitlab-ce!17826
This commit is contained in:
commit
9942364f33
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
raise "Vendored ActiveRecord 5 code! Delete #{__FILE__}!" if ActiveRecord::VERSION::MAJOR >= 5
|
# Remove this file when upgraded to rails 5.0.
|
||||||
|
if !Gitlab.rails5? && Gitlab::Database.postgresql?
|
||||||
if Gitlab::Database.postgresql?
|
|
||||||
require 'active_record/connection_adapters/postgresql_adapter'
|
require 'active_record/connection_adapters/postgresql_adapter'
|
||||||
require 'active_record/connection_adapters/postgresql/schema_statements'
|
require 'active_record/connection_adapters/postgresql/schema_statements'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue