Add new fields to user object
This commit is contained in:
parent
b7500617e3
commit
c78a28c676
2 changed files with 11 additions and 1 deletions
7
db/migrate/20220304091218_add_fields_to_user.rb
Normal file
7
db/migrate/20220304091218_add_fields_to_user.rb
Normal file
|
|
@ -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
|
||||
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Reference in a new issue