diff --git a/db/migrate/20200313135459_add_classname_to_structured_answer.rb b/db/migrate/20200313135459_add_classname_to_structured_answer.rb new file mode 100644 index 0000000..e088c42 --- /dev/null +++ b/db/migrate/20200313135459_add_classname_to_structured_answer.rb @@ -0,0 +1,5 @@ +class AddClassnameToStructuredAnswer < ActiveRecord::Migration + def change + add_column :structured_answers, :classname, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 3e329ae..c86482d 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: 20200313125229) do +ActiveRecord::Schema.define(version: 20200313135459) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -420,6 +420,7 @@ t.integer "structured_data_schema_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "classname" end add_index "structured_answers", ["answer_id"], name: "index_structured_answers_on_answer_id", using: :btree