Change target_id to null on todos

This commit is contained in:
Douglas Barbosa Alexandre 2016-03-16 16:31:37 -03:00
parent 8dfa0a7649
commit 42834095bc
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class ChangeTargetIdToNullOnTodos < ActiveRecord::Migration
def change
change_column_null :todos, :target_id, true
end
end

View File

@ -867,7 +867,7 @@ ActiveRecord::Schema.define(version: 20160316204731) do
create_table "todos", force: :cascade do |t|
t.integer "user_id", null: false
t.integer "project_id", null: false
t.integer "target_id", null: false
t.integer "target_id"
t.string "target_type", null: false
t.integer "author_id"
t.integer "action", null: false