Add element to raids for sorting and fix raid id

This commit is contained in:
Justin Edmund 2022-02-26 15:59:33 -08:00
parent 374e294a33
commit 49c8f55b6c
3 changed files with 14 additions and 3 deletions

View file

@ -0,0 +1,6 @@
class FixRaidAssociationOnParties < ActiveRecord::Migration[6.1]
def change
add_column :parties, :raid_id, :uuid
remove_column :parties, :raids_id, :bigint
end
end

View file

@ -0,0 +1,5 @@
class AddElementToRaids < ActiveRecord::Migration[6.1]
def change
add_column :raids, :element, :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_02_24_024415) do
ActiveRecord::Schema.define(version: 2022_02_25_014523) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
@ -130,8 +130,7 @@ ActiveRecord::Schema.define(version: 2022_02_24_024415) do
t.boolean "extra", default: false, null: false
t.string "name"
t.text "description"
t.bigint "raids_id"
t.index ["raids_id"], name: "index_parties_on_raids_id"
t.uuid "raid_id"
t.index ["user_id"], name: "index_parties_on_user_id"
end
@ -140,6 +139,7 @@ ActiveRecord::Schema.define(version: 2022_02_24_024415) do
t.string "name_jp"
t.integer "level"
t.integer "group"
t.integer "element"
end
create_table "summons", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|