summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-05-12 01:18:49 -0700
committerStan Hu <stanhu@gmail.com>2018-05-12 01:18:49 -0700
commitdc09828d09c6b818a10eaa678b427d812fbd85b2 (patch)
tree0c60fe687e0fef48834dfe426b869c4e23c11fc5
parent57f00ac987aa0674aeefad0eb50165d70f3809c8 (diff)
downloadgitlab-ce-sh-enforce-not-null.tar.gz
Fix #down implementationsh-enforce-not-null
-rw-r--r--db/migrate/20180512061621_add_not_null_constraint_to_project_features_project_id.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20180512061621_add_not_null_constraint_to_project_features_project_id.rb b/db/migrate/20180512061621_add_not_null_constraint_to_project_features_project_id.rb
index 7b819b9ec8b..5a6d6ff4a10 100644
--- a/db/migrate/20180512061621_add_not_null_constraint_to_project_features_project_id.rb
+++ b/db/migrate/20180512061621_add_not_null_constraint_to_project_features_project_id.rb
@@ -16,6 +16,6 @@ class AddNotNullConstraintToProjectFeaturesProjectId < ActiveRecord::Migration
end
def down
- change_column_null :project_features, :project_id, false
+ change_column_null :project_features, :project_id, true
end
end