From cf0d11d860a1a97295ff98390c757e0a8265eac9 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Tue, 21 Jun 2022 14:50:51 +0200 Subject: [PATCH] Add anon display name field to profiles --- .../20220620193732_add_anon_display_name_to_profiles.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20220620193732_add_anon_display_name_to_profiles.rb diff --git a/db/migrate/20220620193732_add_anon_display_name_to_profiles.rb b/db/migrate/20220620193732_add_anon_display_name_to_profiles.rb new file mode 100644 index 00000000..82a56f3e --- /dev/null +++ b/db/migrate/20220620193732_add_anon_display_name_to_profiles.rb @@ -0,0 +1,5 @@ +class AddAnonDisplayNameToProfiles < ActiveRecord::Migration[6.1] + def change + add_column :profiles, :anon_display_name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 2fc1be5b..639e0dab 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_06_14_141439) do +ActiveRecord::Schema.define(version: 2022_06_20_193732) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -147,6 +147,7 @@ ActiveRecord::Schema.define(version: 2022_06_14_141439) do t.string "motivation_header", default: "", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "anon_display_name" t.index ["user_id"], name: "index_profiles_on_user_id" end