mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-17 01:42:53 +00:00
Moving to github
This commit is contained in:
8
app/models/platform.rb
Normal file
8
app/models/platform.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class Platform < ApplicationRecord
|
||||
# Associations
|
||||
has_many :games, dependent: :restrict_with_error
|
||||
has_many :items, dependent: :restrict_with_error
|
||||
|
||||
# Validations
|
||||
validates :name, presence: true, uniqueness: { case_sensitive: false }
|
||||
end
|
||||
Reference in New Issue
Block a user