Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20151210125932_drop_null_for_ci_tables.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e1a0a964589adad0e6e766a303bfe837ca8b4eb9 (plain)
1
2
3
4
5
6
7
8
9
10
# rubocop:disable all
class DropNullForCiTables < ActiveRecord::Migration
  def change
    remove_index :ci_variables, :project_id
    remove_index :ci_runner_projects, :project_id
    change_column_null :ci_triggers, :project_id, true
    change_column_null :ci_variables, :project_id, true
    change_column_null :ci_runner_projects, :project_id, true
  end
end