diff --git a/db/migrate/20211019063852_add_column_title_en_for_questions.rb b/db/migrate/20211019063852_add_column_title_en_for_questions.rb new file mode 100644 index 00000000..9874cff8 --- /dev/null +++ b/db/migrate/20211019063852_add_column_title_en_for_questions.rb @@ -0,0 +1,5 @@ +class AddColumnTitleEnForQuestions < ActiveRecord::Migration[6.1] + def change + add_column :questions, :title_en, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 20540632..944d761b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_10_18_093339) do +ActiveRecord::Schema.define(version: 2021_10_19_063852) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -73,6 +73,7 @@ t.datetime "updated_at", precision: 6, null: false t.bigint "category_id" t.integer "question_type" + t.text "title_en" t.index ["category_id"], name: "index_questions_on_category_id" end