summaryrefslogtreecommitdiff
path: root/db/migrate/20160316192622_change_target_id_to_null_on_todos.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-16 16:31:37 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-18 11:00:53 -0300
commit42834095bc92aa2ebe2113a5655227ff0e2799e9 (patch)
tree61740e5dbf7a24b5a12a34181b8bd321bc89336a /db/migrate/20160316192622_change_target_id_to_null_on_todos.rb
parent8dfa0a76492743edbb4266781c9655aae9564723 (diff)
downloadgitlab-ce-42834095bc92aa2ebe2113a5655227ff0e2799e9.tar.gz
Change target_id to null on todos
Diffstat (limited to 'db/migrate/20160316192622_change_target_id_to_null_on_todos.rb')
-rw-r--r--db/migrate/20160316192622_change_target_id_to_null_on_todos.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20160316192622_change_target_id_to_null_on_todos.rb b/db/migrate/20160316192622_change_target_id_to_null_on_todos.rb
new file mode 100644
index 00000000000..6871b3920df
--- /dev/null
+++ b/db/migrate/20160316192622_change_target_id_to_null_on_todos.rb
@@ -0,0 +1,5 @@
+class ChangeTargetIdToNullOnTodos < ActiveRecord::Migration
+ def change
+ change_column_null :todos, :target_id, true
+ end
+end