debian-mirror-gitlab/db/migrate/20151210125932_drop_null_for_ci_tables.rb
2019-02-15 15:39:39 +05:30

10 lines
369 B
Ruby

# rubocop:disable all
class DropNullForCiTables < ActiveRecord::Migration[4.2]
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