Add ULB to Characters
How was this not here???
This commit is contained in:
parent
c07c2cc2b5
commit
3eeb013126
2 changed files with 21 additions and 10 deletions
15
db/migrate/20220204092257_add_ulb_to_characters.rb
Normal file
15
db/migrate/20220204092257_add_ulb_to_characters.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class AddUlbToCharacters < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
add_column :characters, :ulb, :boolean, :default => false
|
||||
add_column :characters, :max_hp_ulb, :integer
|
||||
add_column :characters, :max_atk_ulb, :integer
|
||||
change_column_null :characters, :ulb, false
|
||||
change_column_null :characters, :flb, false
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :characters, :ulb, :boolean
|
||||
remove_column :characters, :max_hp_ulb, :integer
|
||||
remove_column :characters, :max_atk_ulb, :integer
|
||||
end
|
||||
end
|
||||
16
db/schema.rb
16
db/schema.rb
|
|
@ -15,6 +15,7 @@ ActiveRecord::Schema.define(version: 2022_02_02_005218) do
|
|||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pgcrypto"
|
||||
enable_extension "plpgsql"
|
||||
enable_extension "timescaledb"
|
||||
|
||||
create_table "characters", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||
t.string "name_en"
|
||||
|
|
@ -27,7 +28,8 @@ ActiveRecord::Schema.define(version: 2022_02_02_005218) do
|
|||
t.integer "gender"
|
||||
t.integer "race1"
|
||||
t.integer "race2"
|
||||
t.boolean "flb", default: false, null: false
|
||||
t.boolean "flb"
|
||||
t.boolean "max_level"
|
||||
t.integer "min_hp"
|
||||
t.integer "max_hp"
|
||||
t.integer "max_hp_flb"
|
||||
|
|
@ -38,9 +40,6 @@ ActiveRecord::Schema.define(version: 2022_02_02_005218) do
|
|||
t.integer "base_ta"
|
||||
t.float "ougi_ratio"
|
||||
t.float "ougi_ratio_flb"
|
||||
t.boolean "ulb", default: false, null: false
|
||||
t.integer "max_atk_ulb"
|
||||
t.integer "max_hp_ulb"
|
||||
t.boolean "special", default: false, null: false
|
||||
end
|
||||
|
||||
|
|
@ -149,6 +148,7 @@ ActiveRecord::Schema.define(version: 2022_02_02_005218) do
|
|||
t.integer "max_atk"
|
||||
t.integer "max_atk_flb"
|
||||
t.integer "max_atk_ulb"
|
||||
t.boolean "subaura", default: false, null: false
|
||||
t.integer "limit"
|
||||
end
|
||||
|
||||
|
|
@ -178,8 +178,8 @@ ActiveRecord::Schema.define(version: 2022_02_02_005218) do
|
|||
t.integer "element"
|
||||
t.integer "proficiency"
|
||||
t.string "series"
|
||||
t.boolean "flb", default: false, null: false
|
||||
t.boolean "ulb", default: false, null: false
|
||||
t.boolean "flb"
|
||||
t.boolean "ulb"
|
||||
t.integer "max_level"
|
||||
t.integer "max_skill_level"
|
||||
t.integer "min_hp"
|
||||
|
|
@ -195,10 +195,6 @@ ActiveRecord::Schema.define(version: 2022_02_02_005218) do
|
|||
t.integer "ax"
|
||||
end
|
||||
|
||||
create_table "weapons_import", id: false, force: :cascade do |t|
|
||||
t.json "doc"
|
||||
end
|
||||
|
||||
add_foreign_key "oauth_access_grants", "oauth_applications", column: "application_id"
|
||||
add_foreign_key "oauth_access_tokens", "oauth_applications", column: "application_id"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue