add geo info and do refractor on workers

This commit is contained in:
2021-04-29 20:44:21 +02:00
parent f7799bb514
commit c5190b48f8
32 changed files with 241 additions and 205 deletions

View File

@@ -0,0 +1,21 @@
# frozen_string_literal: true
class WowGeoPosition < ApplicationRecord
belongs_to :wow_geo_map
belongs_to :wow_geo_zone
has_one(
:last_position_character,
class_name: 'WowCharacter',
foreign_key: 'last_position_id',
inverse_of: :last_position,
dependent: :destroy
)
has_one(
:bind_position_character,
class_name: 'WowCharacter',
foreign_key: 'bind_position_id',
inverse_of: :bind_position,
dependent: :destroy
)
end