1
0
Fork 0
dokkan-data-rails/app/models/character.rb

6 lines
167 B
Ruby

class Character < ActiveRecord::Base
validates :name, presence: true,
uniqueness: { case_sensitive: false }
default_scope { order(:name) }
end