diff options
author | Jarka Kadlecová <jarka@gitlab.com> | 2018-06-05 12:29:33 +0300 |
---|---|---|
committer | Jarka Kadlecová <jarka@gitlab.com> | 2018-06-14 09:39:43 +0300 |
commit | fa36101a7fc8679d98198942f15dd6285673594d (patch) | |
tree | 75d233d7910354ef47511de29929800fb35cb4ad /app/models/project.rb | |
parent | 760b12dc6b3a927c918855e2ee85a1c0e6bddb73 (diff) |
Use data_source_exists? instead of table_exists?
Use data_source_exists? where possible instead of table_exists? in order to be Rails5 compatible
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 562198e2369..fb6e9fb2676 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -68,7 +68,7 @@ class Project < ActiveRecord::Base add_authentication_token_field :runners_token - before_validation :mark_remote_mirrors_for_removal, if: -> { ActiveRecord::Base.connection.table_exists?(:remote_mirrors) } + before_validation :mark_remote_mirrors_for_removal, if: -> { RemoteMirror.table_exists? } before_save :ensure_runners_token |