This repository has been archived on 2021-07-13. You can view files and clone it, but cannot push or open issues or pull requests.
feedfu/app/models/item.rb

7 lines
135 B
Ruby
Raw Normal View History

class Item < ActiveRecord::Base
belongs_to :feed
validates_presence_of :title, :author, :content
validates_uniqueness_of :url
end