diff options
author | Jarka Kadlecová <jarka@gitlab.com> | 2018-06-05 11:29:33 +0200 |
---|---|---|
committer | Jarka Kadlecová <jarka@gitlab.com> | 2018-06-14 08:39:43 +0200 |
commit | fa36101a7fc8679d98198942f15dd6285673594d (patch) | |
tree | 75d233d7910354ef47511de29929800fb35cb4ad /spec/support/helpers/migrations_helpers.rb | |
parent | 760b12dc6b3a927c918855e2ee85a1c0e6bddb73 (diff) | |
download | gitlab-ce-fa36101a7fc8679d98198942f15dd6285673594d.tar.gz |
Use data_source_exists? instead of table_exists?rails5-database
Use data_source_exists? where possible instead of table_exists? in order to be Rails5 compatible
Diffstat (limited to 'spec/support/helpers/migrations_helpers.rb')
-rw-r--r-- | spec/support/helpers/migrations_helpers.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/spec/support/helpers/migrations_helpers.rb b/spec/support/helpers/migrations_helpers.rb index 84abec75c26..0bc235701eb 100644 --- a/spec/support/helpers/migrations_helpers.rb +++ b/spec/support/helpers/migrations_helpers.rb @@ -10,10 +10,6 @@ module MigrationsHelpers ActiveRecord::Migrator.migrations_paths end - def table_exists?(name) - ActiveRecord::Base.connection.table_exists?(name) - end - def migrations ActiveRecord::Migrator.migrations(migrations_paths) end |