gitlab-org--gitlab-foss/db/post_migrate
Rémy Coutable 2f40fc521e
Disable the inheritance column of services in DisableInvalidServiceTemplates migration
The `unless defined?(Service)` was useless since in production env,
models are eager loaded, thus we wouldn't disable the STI, resulting in
the following error:

The single-table inheritance mechanism failed to locate the subclass:
'GitlabCiService'. This error is raised because the column 'type' is
reserved for storing the class in case of inheritance. Please rename
this column if you didn't intend it to be used for storing the
inheritance class or overwrite Service.inheritance_column to use another
column for that
information./opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20170211073944_disable_invalid_service_templates.rb:11:in `up'

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-01 14:06:50 +01:00
..
.gitkeep Support for post deployment migrations 2016-10-31 12:54:48 +01:00
20160824121037_change_personal_access_tokens_default_back_to_empty_array.rb Make ChangePersonalAccessTokensDefaultBackToEmptyArray a "post" migration. 2016-12-16 16:29:33 +05:30
20161011222551_remove_inactive_jira_service_properties.rb Exclude migrations from Style/MutableConstant 2017-02-23 09:32:42 -06:00
20161109150329_fix_project_records_with_invalid_visibility.rb Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
20161221140236_remove_unneeded_services.rb Disable timeout while removing services 2016-12-27 11:10:15 +01:00
20161221153951_rename_reserved_project_names.rb Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
20170104150317_requeue_pending_delete_projects.rb Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
20170106142508_fill_authorized_projects.rb Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
20170106172224_remove_project_authorizations_id_column.rb Remove the project_authorizations.id column 2017-01-08 13:56:50 +01:00
20170206040400_remove_inactive_default_email_services.rb Use Gitlab::Database.with_connection_pool from !9192 2017-02-14 20:29:36 +08:00
20170206101007_remove_trackable_columns_from_timelogs.rb Refactor migration to not require downtime 2017-02-07 10:42:42 -05:00
20170206101030_validate_foreign_keys_on_timelogs.rb Refactor migration to not require downtime 2017-02-07 10:42:42 -05:00
20170211073944_disable_invalid_service_templates.rb Disable the inheritance column of services in DisableInvalidServiceTemplates migration 2017-03-01 14:06:50 +01:00
20170214111112_delete_deprecated_gitlab_ci_service.rb Remove deprecated CI service 2017-02-14 15:15:41 +01:00
20170215200045_remove_theme_id_from_users.rb Remove comments in migration 2017-02-16 08:25:09 -06:00