Latest database additions

This commit is contained in:
Justin Edmund 2022-01-28 21:22:28 -08:00
parent 6e9010ee31
commit 709da5c76f
4 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class RemoveLimitGroupFromWeapons < ActiveRecord::Migration[6.1]
def change
remove_column :weapons, :limit_group
end
end

View file

@ -0,0 +1,13 @@
class AddDefaultToLbOnWeapons < ActiveRecord::Migration[6.1]
def change
def self.up
change_column :weapons, :flb, :boolean, default: false
change_column :weapons, :ulb, :boolean, default: false
end
def self.down
change_column :weapons, :flb, :boolean, default: nil
change_column :weapons, :ulb, :boolean, default: nil
end
end
end

View file

@ -0,0 +1,5 @@
class AddAxToWeapons < ActiveRecord::Migration[6.1]
def change
add_column :weapons, :ax, :integer
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_01_15_062109) do
ActiveRecord::Schema.define(version: 2022_01_28_183534) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
@ -191,6 +191,11 @@ ActiveRecord::Schema.define(version: 2022_01_15_062109) do
t.integer "max_atk_ulb"
t.boolean "extra", default: false, null: false
t.integer "limit"
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"