diff --git a/db/migrate/20200313143640_add_parent_id_to_structured_answer.rb b/db/migrate/20200313143640_add_parent_id_to_structured_answer.rb new file mode 100644 index 0000000..4400697 --- /dev/null +++ b/db/migrate/20200313143640_add_parent_id_to_structured_answer.rb @@ -0,0 +1,5 @@ +class AddParentIdToStructuredAnswer < ActiveRecord::Migration + def change + add_column :structured_answers, :parent_id, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index c86482d..f655258 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20200313135459) do +ActiveRecord::Schema.define(version: 20200313143640) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -421,6 +421,7 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "classname" + t.integer "parent_id" end add_index "structured_answers", ["answer_id"], name: "index_structured_answers_on_answer_id", using: :btree