wblog/app/models/label.rb

5 lines
103 B
Ruby
Raw Normal View History

class Label < ApplicationRecord
2014-03-31 22:13:58 +08:00
has_and_belongs_to_many :posts
2014-03-31 14:10:54 +08:00
validates :name, presence: true
2014-03-29 23:42:30 +08:00
end