Add element to raids for sorting and fix raid id
This commit is contained in:
parent
374e294a33
commit
49c8f55b6c
3 changed files with 14 additions and 3 deletions
|
|
@ -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
|
||||
5
db/migrate/20220225014523_add_element_to_raids.rb
Normal file
5
db/migrate/20220225014523_add_element_to_raids.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddElementToRaids < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :raids, :element, :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_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|
|
||||
|
|
|
|||
Loading…
Reference in a new issue