diff options
Diffstat (limited to 'db/migrate/20151210125932_drop_null_for_ci_tables.rb')
-rw-r--r-- | db/migrate/20151210125932_drop_null_for_ci_tables.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20151210125932_drop_null_for_ci_tables.rb b/db/migrate/20151210125932_drop_null_for_ci_tables.rb new file mode 100644 index 00000000000..c520c2ed56f --- /dev/null +++ b/db/migrate/20151210125932_drop_null_for_ci_tables.rb @@ -0,0 +1,9 @@ +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 |