summaryrefslogtreecommitdiff
path: root/db/migrate/20151210125932_drop_null_for_ci_tables.rb
blob: 0b007430b0c17168447bc51f80059779f501764c (plain)
1
2
3
4
5
6
7
8
9
class DropNullForCiTables < ActiveRecord::Migration
  def up
    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