![]() 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> |
||
---|---|---|
.. | ||
.gitkeep | ||
20160824121037_change_personal_access_tokens_default_back_to_empty_array.rb | ||
20161011222551_remove_inactive_jira_service_properties.rb | ||
20161109150329_fix_project_records_with_invalid_visibility.rb | ||
20161221140236_remove_unneeded_services.rb | ||
20161221153951_rename_reserved_project_names.rb | ||
20170104150317_requeue_pending_delete_projects.rb | ||
20170106142508_fill_authorized_projects.rb | ||
20170106172224_remove_project_authorizations_id_column.rb | ||
20170206040400_remove_inactive_default_email_services.rb | ||
20170206101007_remove_trackable_columns_from_timelogs.rb | ||
20170206101030_validate_foreign_keys_on_timelogs.rb | ||
20170211073944_disable_invalid_service_templates.rb | ||
20170214111112_delete_deprecated_gitlab_ci_service.rb | ||
20170215200045_remove_theme_id_from_users.rb |