Add anon display name field to profiles

This commit is contained in:
Karina Kwiatek 2022-06-21 14:50:51 +02:00 committed by Karina Kwiatek
parent ef06158c40
commit cf0d11d860
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddAnonDisplayNameToProfiles < ActiveRecord::Migration[6.1]
def change
add_column :profiles, :anon_display_name, :string
end
end

View File

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