Latest database additions
This commit is contained in:
parent
6e9010ee31
commit
709da5c76f
4 changed files with 29 additions and 1 deletions
|
|
@ -0,0 +1,5 @@
|
|||
class RemoveLimitGroupFromWeapons < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
remove_column :weapons, :limit_group
|
||||
end
|
||||
end
|
||||
13
db/migrate/20220128183524_add_default_to_lb_on_weapons.rb
Normal file
13
db/migrate/20220128183524_add_default_to_lb_on_weapons.rb
Normal 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
|
||||
5
db/migrate/20220128183534_add_ax_to_weapons.rb
Normal file
5
db/migrate/20220128183534_add_ax_to_weapons.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddAxToWeapons < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :weapons, :ax, :integer
|
||||
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_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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue