summaryrefslogtreecommitdiff
path: root/db/migrate/20160316192622_change_target_id_to_null_on_todos.rb
diff options
context:
space:
mode:
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.rb6
1 files changed, 6 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..65e0e61c78f
--- /dev/null
+++ b/db/migrate/20160316192622_change_target_id_to_null_on_todos.rb
@@ -0,0 +1,6 @@
+# rubocop:disable all
+class ChangeTargetIdToNullOnTodos < ActiveRecord::Migration
+ def change
+ change_column_null :todos, :target_id, true
+ end
+end