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

7 lines
167 B
Ruby
Raw Normal View History

2015-10-06 13:55:12 -04:00
class Character < ActiveRecord::Base
validates :name, presence: true,
uniqueness: { case_sensitive: false }
2015-10-08 13:08:45 -04:00
default_scope { order(:name) }
2015-10-06 13:55:12 -04:00
end