diff --git a/db/migrate/20230108114333_add_allow_long_questions_to_profiles.rb b/db/migrate/20230108114333_add_allow_long_questions_to_profiles.rb new file mode 100644 index 00000000..5f67a004 --- /dev/null +++ b/db/migrate/20230108114333_add_allow_long_questions_to_profiles.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 05514255..45b1005d 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: 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