Add option for allowing long questions

This commit is contained in:
Karina Kwiatek 2023-01-08 13:03:06 +01:00
parent 122be928bf
commit 09d110eb58
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddAllowLongQuestionsToProfiles < ActiveRecord::Migration[6.1]
def change
add_column :profiles, :allow_long_questions, :boolean, default: false
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_12_27_065923) do
ActiveRecord::Schema.define(version: 2023_01_08_114333) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -134,6 +134,7 @@ ActiveRecord::Schema.define(version: 2022_12_27_065923) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "anon_display_name"
t.boolean "allow_long_questions", default: false
t.index ["user_id"], name: "index_profiles_on_user_id"
end