2016-06-09 12:39:16 +00:00
|
|
|
# rubocop:disable all
|
2015-12-04 11:55:23 +00:00
|
|
|
class DropNullForCiTables < ActiveRecord::Migration
|
2015-12-23 18:39:44 +00:00
|
|
|
def change
|
2015-12-04 11:55:23 +00:00
|
|
|
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
|