Add element to user

The bg color for pictures
This commit is contained in:
Justin Edmund 2022-03-04 03:56:20 -08:00
parent 5e2a28c340
commit e7099b2d34
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddElementToUser < ActiveRecord::Migration[6.1]
def change
add_column :users, :element, :string, :default => "water", :null => false
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_03_04_092134) do
ActiveRecord::Schema.define(version: 2022_03_04_115434) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
@ -189,6 +189,7 @@ ActiveRecord::Schema.define(version: 2022_03_04_092134) do
t.string "picture", default: "gran"
t.string "language", default: "en", null: false
t.boolean "private", default: false, null: false
t.string "element", default: "water", null: false
end
create_table "weapon_keys", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|