continue to backport old code

This commit is contained in:
2021-04-24 00:24:05 +02:00
parent 5d7217f355
commit 04434760c5
72 changed files with 795 additions and 78 deletions

10
app/models/wow_mount.rb Normal file
View File

@@ -0,0 +1,10 @@
class WowMount < ApplicationRecord
extend Mobility
translates :name, :description, :translated_faction, :translated_source
has_many :user_obtain_mounts, dependent: :destroy
has_many :users, through: :user_obtain_mounts
validates :name, presence: true
validates :mount_id, presence: true, uniqueness: true
end