diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-10 18:08:59 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-11 18:02:09 +0100 |
commit | 91cdb08d5fa83a86f5f18088bf148e832732bed9 (patch) | |
tree | 9a3dd429b6db8be47c5aec7690ee03a93136d7fe /db/migrate/20151210125932_drop_null_for_ci_tables.rb | |
parent | 3d9ce37a48615032c786913acdde1eedba351361 (diff) | |
download | gitlab-ce-91cdb08d5fa83a86f5f18088bf148e832732bed9.tar.gz |
Rename columns and rename migrations
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..0b007430b0c --- /dev/null +++ b/db/migrate/20151210125932_drop_null_for_ci_tables.rb @@ -0,0 +1,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 |