Resolve various database deprecation warnings

What does this MR do?

This resolves various deprecations triggered by extending ActiveRecord::Migration, and by using table_exists? instead of data_source_exists?.

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/54478, though this issue may need further work to replace all instances of table_exists? that might be deprecated.

Does this MR meet the acceptance criteria?

Merge request reports

Loading