enable long questions by default

This commit is contained in:
Kay Faraday 2023-02-03 05:54:50 +00:00
parent 353f6f8940
commit 00f7645e5a
2 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -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