Add special field for non-standard story SR characters

This commit is contained in:
Justin Edmund 2022-02-01 17:08:46 -08:00
parent 3f2f1cd836
commit 5bbeed54ea
3 changed files with 24 additions and 8 deletions

View file

@ -5,7 +5,8 @@ attributes :id,
:rarity,
:element,
:gender,
:max_level
:max_level,
:special
node :name do |w|
{

View file

@ -0,0 +1,10 @@
class AddSpecialToCharacters < ActiveRecord::Migration[6.1]
def up
add_column :characters, :special, :boolean, :default => false
change_column_null :characters, :special, false
end
def down
remove_column :characters, :special, :boolean
end
end

View file

@ -10,12 +10,11 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_01_28_183534) do
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"
@ -28,8 +27,7 @@ ActiveRecord::Schema.define(version: 2022_01_28_183534) do
t.integer "gender"
t.integer "race1"
t.integer "race2"
t.boolean "flb"
t.boolean "max_level"
t.boolean "flb", default: false, null: false
t.integer "min_hp"
t.integer "max_hp"
t.integer "max_hp_flb"
@ -40,6 +38,10 @@ ActiveRecord::Schema.define(version: 2022_01_28_183534) 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
create_table "grid_characters", force: :cascade do |t|
@ -147,7 +149,6 @@ ActiveRecord::Schema.define(version: 2022_01_28_183534) 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
@ -177,8 +178,8 @@ ActiveRecord::Schema.define(version: 2022_01_28_183534) do
t.integer "element"
t.integer "proficiency"
t.string "series"
t.boolean "flb"
t.boolean "ulb"
t.boolean "flb", default: false, null: false
t.boolean "ulb", default: false, null: false
t.integer "max_level"
t.integer "max_skill_level"
t.integer "min_hp"
@ -194,6 +195,10 @@ ActiveRecord::Schema.define(version: 2022_01_28_183534) 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