add creature and base rp_world

This commit is contained in:
2021-06-02 22:24:04 +02:00
parent 5b3da08707
commit 62464846a3
56 changed files with 432 additions and 13 deletions

9
app/models/rp_world.rb Normal file
View File

@@ -0,0 +1,9 @@
class RpWorld < ApplicationRecord
belongs_to :user
alias_attribute :owner, :user
has_many :wow_character_play_rp_worlds, dependent: :destroy
has_many :wow_characters, through: :wow_character_play_rp_worlds
alias_attribute :members, :wow_characters
validates :name, presence: true
end