diff --git a/db/migrate/20220304091218_add_fields_to_user.rb b/db/migrate/20220304091218_add_fields_to_user.rb new file mode 100644 index 0000000..591c396 --- /dev/null +++ b/db/migrate/20220304091218_add_fields_to_user.rb @@ -0,0 +1,7 @@ +class AddFieldsToUser < ActiveRecord::Migration[6.1] + def change + add_column :users, :picture, :string + add_column :users, :language, :string + add_column :users, :private, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index f727b82..6b8be7b 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_03_03_092208) do +ActiveRecord::Schema.define(version: 2022_03_04_091218) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" @@ -186,6 +186,9 @@ ActiveRecord::Schema.define(version: 2022_03_03_092208) do t.integer "granblue_id" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false + t.string "picture" + t.string "language" + t.boolean "private" end create_table "weapon_keys", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|