0
0
instrumental/app/models/tag.rb

6 lines
134 B
Ruby
Raw Normal View History

2016-11-05 03:12:59 +09:00
class Tag < ApplicationRecord
HASHTAG_RE = /[?:^|\s|\.|>]#([[:word:]_]+)/i
validates :name, presence: true, uniqueness: true
end