From 00f7645e5ab456009c3a646636ba82dc834ce85e Mon Sep 17 00:00:00 2001 From: Kay Faraday Date: Fri, 3 Feb 2023 05:54:50 +0000 Subject: [PATCH] enable long questions by default --- ...30203054229_enable_allow_long_questions_by_default.rb | 9 +++++++++ db/schema.rb | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20230203054229_enable_allow_long_questions_by_default.rb diff --git a/db/migrate/20230203054229_enable_allow_long_questions_by_default.rb b/db/migrate/20230203054229_enable_allow_long_questions_by_default.rb new file mode 100644 index 00000000..204d5cba --- /dev/null +++ b/db/migrate/20230203054229_enable_allow_long_questions_by_default.rb @@ -0,0 +1,9 @@ +class EnableAllowLongQuestionsByDefault < ActiveRecord::Migration[6.1] + def up + change_column_default :profiles, :allow_long_questions, true + end + + def down + change_column_default :profiles, :allow_long_questions, false + end +end diff --git a/db/schema.rb b/db/schema.rb index 45b1005d..7ae8fef4 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: 2023_01_08_114333) do +ActiveRecord::Schema.define(version: 2023_02_03_054229) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -134,7 +134,7 @@ ActiveRecord::Schema.define(version: 2023_01_08_114333) 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.boolean "allow_long_questions", default: true t.index ["user_id"], name: "index_profiles_on_user_id" end