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.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