Commit 5bb214ad authored by Yorick Peterse's avatar Yorick Peterse

Disable Rubocop for old EE migrations

parent 184f8baa
# rubocop:disable all
class AddJiraIssueTransitionIdToServices < ActiveRecord::Migration class AddJiraIssueTransitionIdToServices < ActiveRecord::Migration
def up def up
add_column :services, :jira_issue_transition_id, :string, default: '2' add_column :services, :jira_issue_transition_id, :string, default: '2'
......
# rubocop:disable all
class AddMemberCheckToGitHooks < ActiveRecord::Migration class AddMemberCheckToGitHooks < ActiveRecord::Migration
def change def change
add_column :git_hooks, :member_check, :boolean, default: false, null: false add_column :git_hooks, :member_check, :boolean, default: false, null: false
......
# rubocop:disable all
class AddMergeRequestRebaseEnabledToProjects < ActiveRecord::Migration class AddMergeRequestRebaseEnabledToProjects < ActiveRecord::Migration
def change def change
add_column :projects, :merge_requests_rebase_enabled, :boolean, default: false add_column :projects, :merge_requests_rebase_enabled, :boolean, default: false
......
# rubocop:disable all
class AddGroupMembershipLock < ActiveRecord::Migration class AddGroupMembershipLock < ActiveRecord::Migration
def change def change
add_column :namespaces, :membership_lock, :boolean, default: false add_column :namespaces, :membership_lock, :boolean, default: false
......
# rubocop:disable all
class AddRebaseSettingToProjects < ActiveRecord::Migration class AddRebaseSettingToProjects < ActiveRecord::Migration
def change def change
add_column :projects, :merge_requests_rebase_default, :boolean, default: true add_column :projects, :merge_requests_rebase_default, :boolean, default: true
......
# rubocop:disable all
class AddIsSampleToGitHooks < ActiveRecord::Migration class AddIsSampleToGitHooks < ActiveRecord::Migration
def change def change
add_column :git_hooks, :is_sample, :boolean, default: false add_column :git_hooks, :is_sample, :boolean, default: false
......
# rubocop:disable all
class AddMaxFileSizeToGitHooks < ActiveRecord::Migration class AddMaxFileSizeToGitHooks < ActiveRecord::Migration
def change def change
add_column :git_hooks, :max_file_size, :integer, default: 0 add_column :git_hooks, :max_file_size, :integer, default: 0
......
# rubocop:disable all
class AddProjectMergeApproves < ActiveRecord::Migration class AddProjectMergeApproves < ActiveRecord::Migration
def change def change
add_column :projects, :approvals_before_merge, :integer, null: false, default: 0 add_column :projects, :approvals_before_merge, :integer, null: false, default: 0
......
# rubocop:disable all
class AddResetApproversToProject < ActiveRecord::Migration class AddResetApproversToProject < ActiveRecord::Migration
def change def change
add_column :projects, :reset_approvers_on_push, :boolean, default: true add_column :projects, :reset_approvers_on_push, :boolean, default: true
......
# rubocop:disable all
class AddFastForwardOptionToProject < ActiveRecord::Migration class AddFastForwardOptionToProject < ActiveRecord::Migration
def change def change
add_column :projects, :merge_requests_ff_only_enabled, :boolean, default: false add_column :projects, :merge_requests_ff_only_enabled, :boolean, default: false
......
# rubocop:disable all
class MigrateRebaseFeature < ActiveRecord::Migration class MigrateRebaseFeature < ActiveRecord::Migration
def up def up
execute %q{UPDATE projects SET merge_requests_ff_only_enabled = TRUE WHERE merge_requests_rebase_enabled IS TRUE} execute %q{UPDATE projects SET merge_requests_ff_only_enabled = TRUE WHERE merge_requests_rebase_enabled IS TRUE}
......
# rubocop:disable all
class AddMirrorToProject < ActiveRecord::Migration class AddMirrorToProject < ActiveRecord::Migration
def change def change
add_column :projects, :mirror, :boolean, default: false, null: false add_column :projects, :mirror, :boolean, default: false, null: false
......
# rubocop:disable all
class AddMirrorTriggerBuildsToProjects < ActiveRecord::Migration class AddMirrorTriggerBuildsToProjects < ActiveRecord::Migration
def change def change
add_column :projects, :mirror_trigger_builds, :boolean, default: false, null: false add_column :projects, :mirror_trigger_builds, :boolean, default: false, null: false
......
# rubocop:disable all
class AddFingerprintIndex < ActiveRecord::Migration class AddFingerprintIndex < ActiveRecord::Migration
disable_ddl_transaction! disable_ddl_transaction!
......
# rubocop:disable all
class GitHooksProjectIdIndex < ActiveRecord::Migration class GitHooksProjectIdIndex < ActiveRecord::Migration
disable_ddl_transaction! disable_ddl_transaction!
......
# rubocop:disable all
class AddLastSyncTimeToGroups < ActiveRecord::Migration class AddLastSyncTimeToGroups < ActiveRecord::Migration
def change def change
add_column :namespaces, :last_ldap_sync_at, :datetime add_column :namespaces, :last_ldap_sync_at, :datetime
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment