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
20160824121037_change_personal_access_tokens_default_back_to_empty_array.rb
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
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
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
20170206101030_validate_foreign_keys_on_timelogs.rb
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