summaryrefslogtreecommitdiff
path: root/db/migrate/20160830232601_change_lock_version_not_null.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20160830232601_change_lock_version_not_null.rb')
-rw-r--r--db/migrate/20160830232601_change_lock_version_not_null.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20160830232601_change_lock_version_not_null.rb b/db/migrate/20160830232601_change_lock_version_not_null.rb
new file mode 100644
index 00000000000..01c58ed5bdc
--- /dev/null
+++ b/db/migrate/20160830232601_change_lock_version_not_null.rb
@@ -0,0 +1,13 @@
+class ChangeLockVersionNotNull < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def up
+ change_column_null :issues, :lock_version, true
+ change_column_null :merge_requests, :lock_version, true
+ end
+
+ def down
+ end
+end